Has been added to your cart message

Open to all! Ask other shopowners for help.
Post Reply
lambro28
Member
Posts: 62
Joined: Sun Jan 03, 2021 2:47 pm
Phoenix Version: v1.1.0.6
Has thanked: 11 times
Been thanked: 8 times

Has been added to your cart message

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: Has been added to your cart message

Post 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
User avatar
stevang
Member
Posts: 21
Joined: Thu Nov 07, 2019 11:47 pm
Phoenix Version:
Has thanked: 15 times
Been thanked: 1 time

Re: Has been added to your cart message

Post 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.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Has been added to your cart message

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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply