I have purchased the tmart theme from a third party and I am wanting to remove the option for customers to ‘add to cart’. This is my store preview, if you click all products and hover over an item you will see the ‘Add to Cart’ appear.
Topic summary
A user purchased the tmart theme from a third party and wants to remove the ‘Add to Cart’ button that appears when hovering over products in the ‘All Products’ section.
Proposed Solution:
- Navigate to: Online Store → Theme → Edit code
- Locate the
theme.liquidfile - Insert provided code snippet at the bottom of the file
- The code uses conditional logic checking for “collection” in the handle
Current Status:
The suggested solution did not resolve the issue—the ‘Add to Cart’ option continues to appear. The problem remains unresolved and may require alternative approaches or further troubleshooting specific to the third-party tmart theme structure.
Hi @SamiGiftsi ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file → Save
{% if handle contains "collection"%}
{% endif %}
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Hiya,
Unfortunately this did not work and the Add to cart option is still appearing.