{"id":69560,"date":"2016-04-26T06:04:51","date_gmt":"2016-04-26T10:04:51","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=69560"},"modified":"2016-08-29T04:26:04","modified_gmt":"2016-08-29T08:26:04","slug":"opencart-2-x-how-to-change-add-to-cart-success-message","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-change-add-to-cart-success-message.html","title":{"rendered":"OpenCart 2.x. How to change add to cart &#8216;Success&#8217; message"},"content":{"rendered":"<p>This tutorial will show you how to <strong>change add to cart \u2018Success\u2019 message<\/strong> in <a href=\"https:\/\/www.templatemonster.com\/opencart-templates.php\">OpenCart 2.x. templates<\/a>.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=Jh-XEThaqgQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to change add to cart &#8216;Success&#8217; message<\/a>\r\n<p>In order to <strong>change add to cart \u2018Success\u2019 message<\/strong>, you should perform the following steps:<\/p>\r\n\r\n<ol>\r\n\t\r\n\t<li>\r\n\t\t<p>First of all, navigate to your <strong>File Manager<\/strong> and open  <strong>\/catalog\/language\/english\/checkout<\/strong> directory.<\/p>\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t\t<p>Select the <strong>cart.php<\/strong> file and open it for making changes in a code editor or use <strong>Code Edit<\/strong> button:<\/p>\r\n<a href=\"\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-1-300x95.png\" alt=\"OpenCart-2.x.-How-to-change-add-to-cart-success-message-1\" width=\"300\" height=\"95\" class=\"alignnone size-medium wp-image-69562\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-1-300x95.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-1-150x48.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-1-1024x326.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-1.png 1279w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t\t<p>Here you can find such lines of code, which are responsible for messages in the cart section:<\/p>\r\n\t<pre class=\"brush:php\">$_['text_success'] = 'Success: You have added &lt;a href=\"%s\">%s&lt;\/a&gt; to your &lt;a href=\"%s\">shopping cart&lt;\/a&gt;!';<\/pre>\r\n\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-2-300x61.png\" alt=\"OpenCart-2.x.-How-to-change-add-to-cart-success-message-2\" width=\"300\" height=\"61\" class=\"alignnone size-medium wp-image-69564\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-2-300x61.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-2-150x31.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-2-1024x209.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-2.png 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<p class=\"attention\">Please don&#8217;t delete or change &#8220;%s&#8221; codes.<\/p>\r\n\t<\/li>\r\n\t\r\n\t\r\n\t<li>\r\n\t\t<p>In order to change \u2018Success\u2019 message, simply <strong>replace existing text with the new one<\/strong> and press <strong>Save<\/strong> button.<\/p>\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t\t<p>After this, please open your <strong>OpenCart Dashboard<\/strong>, navigate to <strong>Extensions -> Modifications<\/strong> and click <strong>Refresh<\/strong> button on the top right:<\/p>\r\n\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-3-300x78.png\" alt=\"OpenCart-2.x.-How-to-change-add-to-cart-success-message-3\" width=\"300\" height=\"78\" class=\"alignnone size-medium wp-image-69565\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-3-300x78.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-3-150x39.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-3-1024x267.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/04\/OpenCart-2.x.-How-to-change-add-to-cart-success-message-3.png 1262w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n\t\r\n\t<li>\r\n\t\t<p>Go back to your website and refresh the page with text that you have changed. Now we can see that editing was successful. <\/p>\r\n\t<\/li>\r\n<\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=Jh-XEThaqgQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to change add to cart &#8216;Success&#8217; message<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to change <strong>add to cart \u2018Success\u2019 message<\/strong> in OpenCart 2.x. templates.<\/p>\n","protected":false},"author":96,"featured_media":69567,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1745,614,1087,1157,2254],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/69560"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/96"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=69560"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/69560\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/69567"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=69560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=69560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=69560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}