Skip to main content

Add customer product fields into the e-mail

12 years 2 months ago #170411 by janvankuijk
-- 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.

12 years 2 months ago #170419 by Mohamed Thelji
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:

Code:
{LINEVAR:product.CUSTOM_FIELD_NAME}
after this line:
Code:
{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.

12 years 2 months ago #170472 by janvankuijk
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

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

12 years 2 months ago #170579 by nicolas
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.

12 years 2 months ago #170603 by janvankuijk
No :-(

See attached printscreen.

Jan

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

12 years 2 months ago #170610 by Xavier
Hi,

Thanks to replace the currently added code by:
Code:
{LINEVAR:graveerplaatje}
And in the preload part, add:
Code:
$cartProduct['graveerplaatje'] = isset($product->graveerplaatje)?$product->graveerplaatje:'';
After:
Code:
$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.

12 years 2 months ago #170732 by janvankuijk
Xavier no :-(

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

Jan

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

12 years 2 months ago #170761 by nicolas
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.

12 years 2 months ago #170840 by janvankuijk
There is a custom. See attached print screen.

Maybe I will sent you login details?

Jan

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

12 years 2 months ago #170917 by Xavier
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.

12 years 2 months ago #171006 by janvankuijk
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.100 seconds
Powered by Kunena Forum