If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

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

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