Categories

Featured templates

OpenCart 2.x. How to change add to cart ‘Success’ message

Jill Sunders April 26, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

This tutorial will show you how to change add to cart ‘Success’ message in OpenCart 2.x. templates.

OpenCart 2.x. How to change add to cart ‘Success’ message

In order to change add to cart ‘Success’ message, you should perform the following steps:

  1. First of all, navigate to your File Manager and open /catalog/language/english/checkout directory.

  2. Select the cart.php file and open it for making changes in a code editor or use Code Edit button:

    OpenCart-2.x.-How-to-change-add-to-cart-success-message-1
  3. Here you can find such lines of code, which are responsible for messages in the cart section:

    $_['text_success'] = 'Success: You have added <a href="%s">%s</a> to your <a href="%s">shopping cart</a>!';
    OpenCart-2.x.-How-to-change-add-to-cart-success-message-2

    Please don’t delete or change “%s” codes.

  4. In order to change ‘Success’ message, simply replace existing text with the new one and press Save button.

  5. After this, please open your OpenCart Dashboard, navigate to Extensions -> Modifications and click Refresh button on the top right:

    OpenCart-2.x.-How-to-change-add-to-cart-success-message-3
  6. Go back to your website and refresh the page with text that you have changed. Now we can see that editing was successful.

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to change add to cart ‘Success’ message
Top OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged add to cart, cart, message, opencart, success. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket