Post by DesignCart » Fri Mar 22, 2019 1:02 am

Welcome to you

I have to write a product configurator consisting of several steps. Finished product I have to add to the basket and here my problems begin. Can I add another product with JSON description to the basket? Where does Opencart store product information in the shopping cart?

my website: Tworzenie sklepu internetowego


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by ocmta » Fri Mar 22, 2019 6:45 am

Prior to openCart 3 cart data was stored in the session $session->data['cart'], and in openCart 3 it's in cart table in the database.
To add product to cart you do something like this:

Code: Select all

$this->cart->add($product_id, $quantity, $options); //$options is optional array
You should research system/library/cart/cart.php to see how it's all implemented.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am

Who is online

Users browsing this forum: No registered users and 521 guests