cancel
Showing results for 
Search instead for 
Did you mean: 

which file contains You added...to cart?

SOLVED

which file contains You added...to cart?

I spent over 4 hours looking for the file that has the message when one added a product to cart.

Am to edit magento file or theme file.  grep -ri gave a long list. 

 

I editted add.php, cart-items.html and other files.  Which file do I need to edit.  HELP!!!product_add_to_cart.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: which file contains You added...to cart?

Hello @Sheba 

 

If you are trying to find this message :

You added product to your shopping cart.
 
This can be changed inside :
vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
 
Hope it helps !
Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

View solution in original post

3 REPLIES 3

Re: which file contains You added...to cart?

Hello @Sheba 

 

If you are trying to find this message :

You added product to your shopping cart.
 
This can be changed inside :
vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
 
Hope it helps !
Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: which file contains You added...to cart?

God BLESS YOU!!!!! Thanks...I was able to make the change needed.

Re: which file contains You added...to cart?

Hi)
I can find this file but i dont want to edit it i want to translate it in the relevant store view
I have multilanguage store
I am using csv fille under var/www/html/magento/app/i18
I have everything translate except some special strings , among them there is checkout 
you have added.... to your shopping cart, go to checkout button, view cart button
How can we translate those strings)
Thanks