Post by AdieB » Wed May 22, 2019 7:32 pm

I have created a customised product that returns a few options of results to the product.tpl in a table form. I need to select an option and proceed to checkout. At this time, I am happy to follow the standard checkout process with a view to modifying it at a later stage.
What I would like to try and find, is the process from the product through to the checkout process.
What I have managed to find, is that two variables should be passed, namely product_id and quantity, but am battling to fathom how they are passed and then interpreted. So, I have created a simple form to test this that submits these two variables, but it fails with the following report:-
{"error":{"option":{"226":"Select required!"}},"redirect":"http:\/\/localhost\/index.php?route=product\/product&product_id=30"}

Form sample:-
<form action="index.php?route=checkout/cart/add" method="post" enctype="multipart/form-data" class="form-horizontal">
Product id:<br>
<input type="text" name="product_id" value="product_id">
<input type="text" name="quantity" value="quantity">
<input type="submit" value="Submit">
So, is anyone aware of any documentation, or an understanding that I may read to try and work the checkout process out please...

New member


Mon May 19, 2014 9:01 pm

Post by D3MO » Fri May 24, 2019 1:53 am

From product page if you add something to cart the variables are stored in cart class best way to track how it is all working is to track hos options is made:) for product

Opencart Expert |
Skype - programanija | Gtalk -
Extensions for Opencart @ / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT

User avatar
Active Member


Mon Apr 04, 2011 6:57 am
Who is online

Users browsing this forum: No registered users and 35 guests