getting custom product field into the emails.

  • Posts: 102
  • Thank you received: 0
13 years 4 months ago #24425

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: 13 years 4 months ago by MinnieMouse.

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

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24426

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.

  • Posts: 102
  • Thank you received: 0
13 years 4 months ago #24427

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.

  • Posts: 83051
  • Thank you received: 13412
  • MODERATOR
13 years 4 months ago #24428

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.

  • Posts: 102
  • Thank you received: 0
13 years 4 months ago #24465

;-) yes

sorry this does work (cringe) I had a typo that i kept not seeing...

Last edit: 13 years 4 months ago by MinnieMouse.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum