Include customer ZIP code in admin order subjuct line

  • Posts: 12
  • Thank you received: 0
7 years 2 months ago #277439

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #277458

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.

  • Posts: 12
  • Thank you received: 0
7 years 2 months ago #277698

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #277700

Hello,

The tags depends of the content of the "preload" part of the email.
And specially that part :

$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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 12
  • Thank you received: 0
7 years 2 months ago #278813

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #278842

Hi,

Yes. It should be {cart.order_payment_method}

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

  • Posts: 12
  • Thank you received: 0
7 years 2 months ago #278888

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.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #278935

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 12
  • Thank you received: 0
7 years 2 months ago #278966

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #279055

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.

  • Posts: 12
  • Thank you received: 0
7 years 2 months ago #279196

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.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #279208

Hi,

Thanks for the feedback.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum