logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Monday, January 16, 2023 1:46:47 PM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 245

Thanks: 20 times
Was thanked: 4 time(s) in 4 post(s)
I have a requirement to pick up a value stored in the ac_customfields table for an order shipment and display it in an email.
Is there such a thing as $shipment.CustomFields ?
I found code on how to change AC source code on http://forums.ablecommer...pic.php?f=65&t=17413 but this customer doesn't have the source code.
Thanks

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

nadeem  
#2 Posted : Tuesday, January 17, 2023 7:45:25 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 94

Thanks: 10 times
Was thanked: 12 time(s) in 12 post(s)
Hi Judy,

There is no such thing on order shipments. You have to customize the code to make the custom fields available in email. However, you can use the $orderItem.CustomFields to display order related custom fields in email template if that helps. For example,

Code:
#foreach($item in $orderItem.CustomFields)
<b>$item.Key: $item.Value</b><br />
#end
Users browsing this topic
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.