Include shipping method in Email subject line

  • Posts: 249
  • Thank you received: 21
6 months 3 weeks ago #355778

I have a client that offers priority handling and shipping as a shipping method. As Order administrator notification emails come in they want to see in the subject line any that have paid for this priority handling and shipping. Is there any way to include this information in the subject line?

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

  • Posts: 81604
  • Thank you received: 13082
  • MODERATOR
6 months 3 weeks ago #355784

Hi,

No. It is possible to use tags like {order_shipping_id} to get the id of the shipping method in the subject. But the name of the shipping method is calculated dynamically and it is not available in the tags that can be used in the subject.
One option would be to have a custom "order" field. And configure a mass action to set the custom field value based on the id of the shipping method of the order with a trigger "after an order is updated", and an action "update the values" on the column of the custom field. That way, you could then use the tag of the custom field {xxx} where xxx is the column name of the custom field in the subject of the email.

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

  • Posts: 249
  • Thank you received: 21
6 months 3 weeks ago #355817

Hi Nicolas,
Thanks, that is perfect other than I used "After order is created".

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

  • Posts: 249
  • Thank you received: 21
6 months 2 weeks ago #355887

As an addition to this, can the customer name be added to the email heading?

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

  • Posts: 81604
  • Thank you received: 13082
  • MODERATOR
6 months 2 weeks ago #355889

Hi,

Yes, this is possible with the tag {customer.name} (which will be the name of the joomla user account.
Or with the tags {billing_address.address_firstname} and {billing_address.address_lastname} if you want to use the fields from the billing address

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

  • Posts: 249
  • Thank you received: 21
6 months 2 weeks ago #355922

Thanks,
The name from the billing address probably works best as there are a lot of guest shoppers.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum