Post by djordje » Sat Feb 24, 2018 9:00 pm

I'm trying to figure where the number of product that a person wishes to order is stored on the product.tpl file. I want to store that number in an array when the button "Add to Cart" is pressed.

User avatar
New member

Posts

Joined
Fri Oct 14, 2016 4:23 pm


Post by IP_CAM » Sun Feb 25, 2018 12:06 am

Well, the Variable Name is 'quantity', but nothing is ever 'stored' in a
template product.tpl file.
And this is some content out of a 'model/catalog/product.php' File, wich
handle's the DB related matters, if one creates an order.:

Code: Select all

 AND pd2.quantity = '1'

Code: Select all

sort_data = array(
			'pd.name',
			'p.model',
			'p.quantity',
			...
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + 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
Who is online

Users browsing this forum: No registered users and 175 guests