VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: MAD King on January 28, 2022, 00:11:12 AM

Title: Overrides not working
Post by: MAD King on January 28, 2022, 00:11:12 AM
Hello,

I hope someone can help me.
I changed the text for

COM_VIRTUEMART_CART_NOTIFY_MAIL_HTML

and

COM_VIRTUEMART_CART_NOTIFY_MAIL_RAW

and

COM_VIRTUEMART_MAIL_SHOPPER_NAME

a few days ago and cleared all caches and still it is not working. It still uses the old text which is not existent anymore.

Overrides showing in the en-GB.override.ini

Anyone who can help?


Title: Re: Overrides not working
Post by: MAD King on January 28, 2022, 01:08:29 AM
For anyone who is having the same issue.
Add the overrides to both: Side and Admin.
It works that way.
Do not know why.
Title: Re: Overrides not working
Post by: pinochico on January 28, 2022, 10:01:26 AM
QuoteOverrides showing in the en-GB.override.ini

where?????

in admin or web?
Title: Re: Overrides not working
Post by: GJC Web Design on January 28, 2022, 10:45:31 AM
QuoteAdd the overrides to both: Frontend and Admin.
Just add to admin over rides and check the box for both FE and Admin

this is correct practice...  has been so with VM email constants for as long as I can remember
Title: Re: Overrides not working
Post by: pinochico on January 28, 2022, 13:11:24 PM
Quote from: GJC Web Design on January 28, 2022, 10:45:31 AM
has been so with VM email constants for as long as I can remember

Yes, I think too, is the right, the email constant is generated in admin model == use admin language constant
Title: Re: Overrides not working
Post by: Studio 42 on January 31, 2022, 09:29:06 AM
The problem is that VIrtuemart does not force to load frontend overrides when generating a PDF or mail
So status changes, email, order, invoice also need to be replaced for admin side
I do not know if it's possible to do because overrides are in a specific folder
Perhaps
$lang->load('override', JPATH_SITE.'/overrides', 'xx-XX', true);