Users basket db tables
Posted: Sun Jun 02, 2019 12:50 am
We have opencart installed as a Mijoshop component in a Joomla site, and in our opencart integration with a zoo application, we offer multiple discounts on our products based on user's profile and preferences entered on the product page. When user click "Add to Basket", our product page passes multiple parameters with various discount details to opencart.
Previously Opencart was storing users' basket in session, so we added additional parameters for the discounts, and it was working well.
Opencart is now storing user basket in database table, which only refers to the product code. Hence, opencart is ignoring the discount parameters that are sent by our product page.
There seems no option to add additional parameters to record the applicable discounts, please advice how can we pass the multiple discount details from product page to opencart basket and make it working as before?
Previously Opencart was storing users' basket in session, so we added additional parameters for the discounts, and it was working well.
Opencart is now storing user basket in database table, which only refers to the product code. Hence, opencart is ignoring the discount parameters that are sent by our product page.
There seems no option to add additional parameters to record the applicable discounts, please advice how can we pass the multiple discount details from product page to opencart basket and make it working as before?