Add to Cart

Remove Add to Cart in Opencart

Anant Negi
3 min readJul 12, 2020

Hi everybody, today i am gonna tell you how you can easily remove add to cart button from your Default Opencart Store. As i begin now i am believing that you know how Opencart Modification works, as we will be using the OCMOD file uploading feature from Opencart. So let start for Opencart Version 3:

  1. You have to create a file and name it “install.xml” and add the below code

2. You can see a text {body_goes_here} and this text will be later removed with the actual code that we will add in later part of this blog.

3. To Remove Add to Cart Button from the product page, you can paste this code in the file in place of {body_goes_here}

4. To Remove Add to Cart Button from the Compare page, you can paste this code in the file in place of {body_goes_here}

5. To Remove Add to Cart Button from the Wishlist page, you can paste this code in the file in place of {body_goes_here}

6. To Remove Add to Cart Button from the Module Section like Bestseller, Featured, Latest, Special, you can paste this code in the file in place of {body_goes_here}

7. To Remove Add to Cart Button from the Manufacturer, Search, Special page, you can paste this code in the file in place of {body_goes_here}

If you combine all the above code than you can get a complete modification file that will remove the add to cart button from your Default Opencart Store.

Here is the Github repo link from where you can clone the source code and enjoy. Please rate our Github repo to support our developers.

https://medium.com/better-programming/10-extraordinary-github-repos-for-all-developers-939cdeb28ad0

--

--