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

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


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 10 guests