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 OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
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 22 guests