Page 1 of 1

Has been added to your cart message

Posted: Sun Jul 04, 2021 7:59 pm
by lambro28
Hi,
I wanted to modify the "Tomatoes has been added to your Cart" message, but cannot find the text.
I did find it in the main english.php file, modified it but the message did not change, only the original

Thank you

Re: Has been added to your cart message

Posted: Sun Jul 04, 2021 9:01 pm
by Omar_one
@lambro28
in the english.php

Code: Select all

const PRODUCT_ADDED = '%s has been added to your Cart';
to avoid editing core file you can copy english.php file to templates/override/includes/languages/
and edit that file,
so you will not loss you editing when you update to newer version

Re: Has been added to your cart message

Posted: Mon Jul 05, 2021 1:04 pm
by stevang
Omar_one wrote: Sun Jul 04, 2021 9:01 pm @lambro28
in the english.php

Code: Select all

const PRODUCT_ADDED = '%s has been added to your Cart';
to avoid editing core file you can copy english.php file to templates/override/includes/languages/
and edit that file,
so you will not loss you editing when you update to newer version
it will replace the language file completely, not add to the original, right? just to make sure.
You would have to take care that the edited file is going to be up to date with any new additions or removals in the core language file.

Re: Has been added to your cart message

Posted: Mon Jul 05, 2021 2:50 pm
by ecartz
stevang wrote: Mon Jul 05, 2021 1:04 pm You would have to take care that the edited file is going to be up to date with any new additions or removals in the core language file.
You have to do that anyway. The difference is that if you make the new file, at least any new additions or removals won't overwrite the file when you update.