Skip to main content

getting custom product field into the emails.

More
15 years 1 month ago - 15 years 1 month ago #24425 by MinnieMouse
hi i want to show one of my custom product fields (measurement) in the shopping cart in the email sent to the customer. i tried the following:

$item->order_product_measurement as it seemed this was how the email was calling the other fields for the order... but this didnt work. is there a way to do this??
DOH!!


sorry i already asked this for another issue i was having and resolved it... how addled am i today!! please delete this...
Last edit: 15 years 1 month ago by MinnieMouse.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24426 by nicolas
The information is not loaded. You need to load it yourself:

$prodClass = hikashop_get('class.product');
$product = $prodClass->get($item->product_id);
echo $product->CUSTOM_FIELD_COLUMN_NAME;

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24427 by MinnieMouse
sorry nicolas this didnt work...
i am trying to add the unit measurement to the cart in the email sent to the customer...

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24428 by nicolas
Did you replace the CUSTOM_FIELD_COLUMN_NAME by the actual column name of your custom field ?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago - 15 years 1 month ago #24465 by MinnieMouse
;-) yes

sorry this does work (cringe) I had a typo that i kept not seeing...
Last edit: 15 years 1 month ago by MinnieMouse.

Please Log in or Create an account to join the conversation.

Time to create page: 0.172 seconds
Powered by Kunena Forum