{"id":49629,"date":"2015-06-23T03:14:43","date_gmt":"2015-06-23T07:14:43","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=49629"},"modified":"2016-02-17T06:19:20","modified_gmt":"2016-02-17T11:19:20","slug":"opencart-2-x-how-to-delete-wishlist-button","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-delete-wishlist-button.html","title":{"rendered":"OpenCart 2.x. How to delete Wishlist button"},"content":{"rendered":"<p><a href=\"http:\/\/www.youtube.com\/watch?v=W-nP8YXx1_k?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to delete Wishlist button<\/a><\/p>\r\n<p>This following tutorial will show how to delete the <strong>Wishlist button<\/strong> on categories and products pages in OpenCart2.x.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/06\/OpenCart2.-How-to-delete-Wishlist-button-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/06\/OpenCart2.-How-to-delete-Wishlist-button-1-300x210.jpg\" alt=\"OpenCart2. How to delete Wishlist button-1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-49630\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/OpenCart2.-How-to-delete-Wishlist-button-1-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/OpenCart2.-How-to-delete-Wishlist-button-1-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/06\/OpenCart2.-How-to-delete-Wishlist-button-1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>Connect to server via <a target=\"_blank\" href=\"\/help\/how-upload-files-server-2.html\">FTP<\/a> or open <a target=\"_blank\" href=\"\/help\/how-to-upload-files-to-a-server-using-cpanel-webhost-manager-whm.html\">cPanel file manager<\/a>.\r\n  <\/p>\r\n<\/li>\r\n<li>\r\n<p>Open the <strong>catalog\\view\\theme\\themeXXX\\template\\product\\<\/strong> directory on server. To delete button on the category page, open and edit the <strong>category.tpl<\/strong> file. Find and comment the line with the WishList code:<\/p>\r\n<pre class=\"brush:php\">&lt;button class=&quot;product-btn&quot; type=&quot;button&quot; data-toggle=&quot;tooltip&quot; title=&quot;&lt;?php echo $button_wishlist; ?&gt;&quot; onclick=&quot;wishlist.add('&lt;?php echo $product['product_id']; ?&gt;');&quot;&gt;&lt;i class=&quot;fa fa-heart&quot;&gt;&lt;\/i&gt;&lt;\/button&gt;<\/pre>\r\n<p>Comment the line:<\/p>\r\n<pre class=\"brush:php\">&lt;!--&lt;button class=&quot;product-btn&quot; type=&quot;button&quot; data-toggle=&quot;tooltip&quot; title=&quot;&lt;?php echo $button_wishlist; ?&gt;&quot; onclick=&quot;wishlist.add('&lt;?php echo $product['product_id']; ?&gt;');&quot;&gt;&lt;i class=&quot;fa fa-heart&quot;&gt;&lt;\/i&gt;&lt;\/button&gt;--&gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p>To delete the button on the product page, open and edit the <strong>product.tpl<\/strong> file. Find and comment the line with Wishlist code:<\/p>\r\n<pre class=\"brush:php\">&lt;li&gt;&lt;button class=&quot;btn btn-icon&quot; onclick=&quot;wishlist.add('&lt;?php echo $product_id; ?&gt;');&quot;&gt;&lt;i class=&quot;fa fa-heart&quot;&gt;&lt;\/i&gt; &lt;span class=&quot;hidden-xs hidden-sm&quot;&gt;&lt;?php echo $button_wishlist; ?&gt;&lt;\/span&gt;&lt;\/button&gt;&lt;\/li&gt;<\/pre>\r\n<p>Change line to the following:<\/p>\r\n<pre class=\"brush:php\">&lt;!--&lt;li&gt;&lt;button class=&quot;btn btn-icon&quot; onclick=&quot;wishlist.add('&lt;?php echo $product_id; ?&gt;');&quot;&gt;&lt;i class=&quot;fa fa-heart&quot;&gt;&lt;\/i&gt; &lt;span class=&quot;hidden-xs hidden-sm&quot;&gt;&lt;?php echo $button_wishlist; ?&gt;&lt;\/span&gt;&lt;\/button&gt;&lt;\/li&gt;--&gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Save changes. Refresh front-end with Ctrl\/Cmd+F5 to see the changes.\r\n      <\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=W-nP8YXx1_k?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to delete Wishlist button<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This following tutorial will show how to delete the <strong>Wishlist button<\/strong> on categories and products pages in OpenCart2.x.<\/p>\n","protected":false},"author":65,"featured_media":49633,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[536,1157,1960],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49629"}],"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\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=49629"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/49629\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/49633"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=49629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=49629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=49629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}