- Posts: 102
- Thank you received: 0
getting custom product field into the emails.
- MinnieMouse
-
Topic Author
- Offline
Less
More
15 years 1 month ago - 15 years 1 month ago #24425
by MinnieMouse
getting custom product field into the emails. was created 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...
$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.
15 years 1 month ago #24426
by nicolas
Replied by nicolas on topic Re: getting custom product field into the emails.
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;
$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.
- MinnieMouse
-
Topic Author
- Offline
Less
More
- Posts: 102
- Thank you received: 0
15 years 1 month ago #24427
by MinnieMouse
Replied by MinnieMouse on topic Re: getting custom product field into the emails.
sorry nicolas this didnt work...
i am trying to add the unit measurement to the cart in the email sent to the customer...
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.
15 years 1 month ago #24428
by nicolas
Replied by nicolas on topic Re: getting custom product field into the emails.
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.
- MinnieMouse
-
Topic Author
- Offline
Less
More
- Posts: 102
- Thank you received: 0
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...
Replied by MinnieMouse on topic Re: getting custom product field into the emails.
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