A
A
Apostol632018-10-08 14:03:42
opencart
Apostol63, 2018-10-08 14:03:42

How to get items in opencart cart?

Hello everyone , I'm new to
opencart, so I ran into such a problem (I looked at the PS documentation and did not find an answer to my question there)
each product was assigned a unique number (it will be random from letters and numbers). And even if you bought 2 identical goods, then "bolt 1" will have one number, and "bolt 2" will have another.
The problem is that I can not find the controller and the method that is responsible for the items in the cart.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zoozag, 2018-10-08
@zoozag

Most likely you need this file: system/library/cart/cart.php

V
Vitaly, 2018-10-08
@Anvi-Vt

In opencart, everything is simple,
the controller that is responsible for the cart is called "Cart"
https://github.com/opencart/opencart/blob/master/u...
Only the product, when added, as far as I remember, is stored in the session.
PySy https://github.com/opencart/opencart/blob/master/u...
starting from line 130, everything is written there what goes where and how

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question