Page 1 of 1

Hide add to cart button

Posted: Thu May 07, 2015 3:29 am
by MihaiRMR
Hello all,
Could someone please help me to modify some files in opencart 2.0.1.1 for the following problem ?
I would like to hide the add to cart button for some products in my store and if it is possible to do that if quantity is 2 for example.
I would like that that products show available in stock but also hide the add to cart button based on the quantity number, for example '2'.
Thank you all and waiting for your ideas.

Re: Hide add to cart button

Posted: Thu May 07, 2015 5:11 am
by Qphoria
http://forum.opencart.com/viewtopic.php?f=131&t=27693

You can adjust and change the

Code: Select all

!$product_info['quantity']
to

Code: Select all

$product_info['quantity'] < 2

Re: Hide add to cart button

Posted: Thu May 07, 2015 5:30 pm
by MihaiRMR
Hi Qphoria,
I tested your module on 2.0.1.1, it's close to what i want to use but the add to cart is still there(no effect on it), but still there, i would like to hide the add to cart from product page and also category, featured, etc. page for products that have quantity 0 or 2, no matter what quantity.
Could you please help me with the line that does that.
Thank you very much,