AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Order Item CustomField on Order Notification Email
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 302
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Is it possible to display an order item custom field in an email template? Client wants to display the value in customfield named "stockstatus". What would be the syntax? Thanks
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 302
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Does anyone have an answer to this? Thanks
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 302
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I found the answer in my code library! <br /> #foreach($customField in $orderItem.CustomFields) #each #if($customField.Key == "stockstatus") $customField.Value #end #end
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 467
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
Sorry Judy! I've been overwhelmed these past few weeks. Glad you found the answer and I really appreciate you sharing it too! |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Order Item CustomField on Order Notification Email
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close