Add customer product fields into the e-mail

  • Posts: 235
  • Thank you received: 4
10 years 8 months ago #170411

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.3
-- Browser(s) name and version -- : All

I want to add customer product fields into the order e-mail to the administrator.

How to do so?

Jan

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #170419

Hello,
You'll have to directly edit the code of the "Order administrator notification" email through the page "Hikashop->System->Emails".
Also, if you want to add product custom fields through your email, you'll probably find the solution through that thread : www.hikashop.com/forum/orders-management...ry-email.html#134103

In the email you can add the following tag:

{LINEVAR:product.CUSTOM_FIELD_NAME}
after this line:
{LINEVAR:PRODUCT_NAME}<!--{IF:ORDER_PRODUCT_CODE}--> {LINEVAR:PRODUCT_CODE}<!--{ENDIF:ORDER_PRODUCT_CODE}-->

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

  • Posts: 235
  • Thank you received: 4
10 years 8 months ago #170472

I added this line: {LINEVAR:product.GRAVEERPLAATJE}

But without any result. Only the code is on the order e-mail and not the variable. See attached images.

Jan

Attachments:

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

  • Posts: 83894
  • Thank you received: 13581
  • MODERATOR
10 years 8 months ago #170579

The custom field column name needs to be like you have it in your custom field so the tag should be:
{LINEVAR:product.graveerplaatje}

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

  • Posts: 235
  • Thank you received: 4
10 years 8 months ago #170603

No :-(

See attached printscreen.

Jan

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #170610

Hi,

Thanks to replace the currently added code by:

{LINEVAR:graveerplaatje}
And in the preload part, add:
$cartProduct['graveerplaatje'] = isset($product->graveerplaatje)?$product->graveerplaatje:'';
After:
		$cartProduct = array(
			'PRODUCT_CODE' => $item->order_product_code,
			'PRODUCT_QUANTIY' => $item->order_product_quantity,
			'PRODUCT_IMG' => '',
			'item' => $item,
			'product' => $product,
		);

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

  • Posts: 235
  • Thank you received: 4
10 years 8 months ago #170732

Xavier no :-(

See attached files, but there isn't an text on the e-mail.

Jan

Attachments:

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

  • Posts: 83894
  • Thank you received: 13581
  • MODERATOR
10 years 8 months ago #170761

Then this would indicate that you didn't enter any value in your custom product field for the product/variant you're testing with.
Could you check on that please ?

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

  • Posts: 235
  • Thank you received: 4
10 years 8 months ago #170840

There is a custom. See attached print screen.

Maybe I will sent you login details?

Jan

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #170917

Hi,

Could you try to set the custom field type to text instead of dropdown in order to see if it's working ?
If it still doesn't work, yes thanks to provide access to backend via private message, don't forget to give us the url of that topic.

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

  • Posts: 235
  • Thank you received: 4
10 years 8 months ago #171006

It seems to work now!

Thanks a lot!!!!!

Jan

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

Time to create page: 0.077 seconds
Powered by Kunena Forum