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


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(

For Sale: Turnkey URLs with Opencart installed
My present Opencart Testsite:
Attacker IP Blocks are denied from further access to my Sites!
Just contact me for more Information at:
666 FREE OC Extension-Repositories - from OC v.1.5.x up
on the largest Opencart-Mod Github Site:

User avatar
Legendary Member


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

Users browsing this forum: zzzzzz2 and 10 guests