C
C
Chaly952018-07-27 12:11:05
opencart
Chaly95, 2018-07-27 12:11:05

How can I find out the cart_id of a specific item in the cart?

Good afternoon!
The task is to create just such a notification about adding a product to the cart!
5b5ae13d86e25983087980.jpeg
In this alert, it should be possible to change the quantity of the product already added to the cart.
I understand how to change the quantity of goods in the basket.
But I can't figure out how I can get the cart_id of the product I need, that is, not all the products in the cart, but one product for which I will display an alert.
I would be grateful for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-07-30
@zoozag

1. Get the whole basket and look for your product in it.
2. The product is sent by ajax, add the cart_id of the last added product to the response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question