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

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/ - http://www.velomech.ch/cart/
Image


User avatar
Guru Member

Posts

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

Users browsing this forum: No registered users and 17 guests