Post by sferris » Fri Sep 23, 2016 6:28 am

I am trying to display the quantity available on the product template. I thought it would be as easy as using the variable $quantity. Doesn't work.

So, I went into /catalog/controller/product/product.php and saw a variable $product_info['quantity'] being used for the stock status. So I added the line:

$data['quantity'] = $product_info['quantity'];

Still doesn't work. It just doesn't seem like it should be this difficult, so I'm pretty sure I'm missing something. Any help is appreciated. Thank you.

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am

Post by IP_CAM » Fri Sep 23, 2016 7:02 am

I can't really see your Problem...
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by sferris » Fri Sep 23, 2016 9:58 pm

Ah! That worked with the $stock variable. Thank you so much!

New member

Posts

Joined
Sat Jul 16, 2011 12:46 am
Who is online

Users browsing this forum: Amazon [Bot] and 28 guests