Skip to main content

Include customer ZIP code in admin order subjuct line

More
9 years 1 month ago #277439 by insightdesign
I've been looking through other posts about including different items in the email subject line. Some say to change the "order.php" some say to edit the preload. I am needing to adjust the subject line to include the ZIP code of the order in the subject line. Belwo are the similar posts I've found.
-Thanks

www.hikashop.com/forum/4-how-to/880779-s...ification-email.html

www.hikashop.com/support/forum/orders-ma...-to-email-title.html

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

More
9 years 1 month ago #277458 by nicolas
Hi,

Since a few releases ago, HikaShop now supports tags in Email subjects.
So you can edit the email subject either in the menu System>Emails or as a translation override:
www.hikashop.com/download/languages.html#modify
Add the tag {billing_address.address_post_code} to it and that should do it.
No need for code modification for that anymore.

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

More
9 years 1 month ago #277698 by insightdesign
Hello,
Thank You, Yes, That Seemed to work. Is there documentation outlining the available TAGS? Where should I look for reference?
-Thanks

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

More
9 years 1 month ago #277700 by Jerome
Hello,

The tags depends of the content of the "preload" part of the email.
And specially that part :
Code:
$vars = array( 'LIVE_SITE' => HIKASHOP_LIVE, 'URL' => $order_url, 'ORDER_PRODUCT_CODE' => (bool)$config->get('show_code', false), 'order' => $data->cart, 'user' => $customer, 'billing_address' => @$data->cart->billing_address, 'shipping_address' => @$data->cart->shipping_address,
order gives you an access to the order objet, user the hikashop user object, etc.
You can see the database schema here : www.hikashop.com/support/documentation/6...ocumentation.html#db
And afterwards, each type can be extended via the custom fields (which cannot be in the DB schema since it's dynamic).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
9 years 2 weeks ago #278813 by insightdesign
Hello again
i tried "{order_payment_method}" and it isn't returning anything? Am I missing something?

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

More
9 years 2 weeks ago #278842 by nicolas
Hi,

Yes. It should be {cart.order_payment_method}

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

More
9 years 2 weeks ago #278888 by insightdesign
Hello,
I'm sorry, I should have mentioned that I already tried that as well, tried it again just in case, it just comes back blank.
I've tried:

{order_payment_method}
{order.order_payment_method}
{cart.order_payment_method}

none of them work

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

More
9 years 2 weeks ago #278935 by Jerome
Hello,

We talked with Nicolas and regarding the fact that you want to place the content in the subject and not in the email content ; my message regarding the "vars" in the preload is not relevant.
In order to answer you precisely, we will need to have precise details about your website like your HikaShop version number.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
9 years 2 weeks ago #278966 by insightdesign
Hello,
Thank you for the quick reply,
Joomla Version: 3.8
Hikashop Business Version: 3.2.0

Just to reiterate (Tags Used in the Subject line):
- The first suggestion for the Postal Code worked using
{billing_address.address_post_code}

- The second suggestion using the below did not work
{order_payment_method}
{order.order_payment_method}
{cart.order_payment_method}

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

More
9 years 1 week ago #279055 by nicolas
Hi,

Normally, the {order_payment_method} tag should work and {cart.order_payment_method} should too. I've added a patch so that it works better.
Please download the install package again on our website and install it on yours and that will add the patch. Then, please try again with both tags.
The following user(s) said Thank You: insightdesign

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

More
9 years 1 week ago #279196 by insightdesign
Hello,
Thank you for the quick response. I applied the update, and tried both methods, the {order_payment_method} works great, although the {cart.order_payment_method} does not.
-Thanks

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

More
9 years 1 week ago #279208 by nicolas
Hi,

Thanks for the feedback.

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

Time to create page: 0.303 seconds
Powered by Kunena Forum