News:

Support the VirtueMart project and become a member

Main Menu

Controlling subject field on order status change emails?

Started by jsbullock, June 05, 2015, 01:52:22 AM

Previous topic - Next topic

jsbullock

VirtueMart 2.6.6
Joomla! 2.5.25

Added 4 new statuses with one letter codes in Config/Order Statuses. When I update an order status, the subject of the notification emails for these new ones read COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_x where x is the status code. I found entries for the old order statuses in

/components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini

First tried to add entries in that file directly for the new ones. That screwed up every invoice field in notification tests.

Next tried adding the new ones as Language Overrides for the site. Nothing new.

Just looking to get something intelligent in the subjects of my order status change emails. Any advice would be greatly appreciated.

Cheers,
Jeff

AH

If you add new order statuses you must add them in BOTH

administrator/language/overrides/en-GB.override.ini

And do the same in

/language/overrides/en-GB.override.ini


e.g.


COM_VIRTUEMART_MAIL_SUBJ_VENDOR_A="FOLLOW AN EXISTING FORMAT"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_B="FOLLOW AN EXISTING FORMAT"

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_A="FOLLOW AN EXISTING FORMAT"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_B="FOLLOW AN EXISTING FORMAT"


Regards
A

Joomla 4.4.5
php 8.1

jsbullock

You meant in both the administrator and site views, i.e. both /administrator/language/overrides/en-GB.override.ini and /language/overrides/en-GB.override.ini

Yes, I did that and it works. Thanks Hutson!

Cheers,
Jeff

AH

Regards
A

Joomla 4.4.5
php 8.1