Post by MihaiRMR » Thu May 07, 2015 3:29 am

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.

Newbie

Posts

Joined
Thu May 07, 2015 3:21 am

Post by Qphoria » Thu May 07, 2015 5:11 am

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MihaiRMR » Thu May 07, 2015 5:30 pm

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,

Newbie

Posts

Joined
Thu May 07, 2015 3:21 am
Who is online

Users browsing this forum: No registered users and 5 guests