M
M
Maxim Chernykh2021-04-17 16:33:21
MODX
Maxim Chernykh, 2021-04-17 16:33:21

Is it possible to highlight the added product in minishop2?

Hello!
Is it possible in the product section when the product is added to the cart, the icon is painted green with a number on it, exactly how much product was added to the cart?
That is, in fact, like msMiniCart but to the product.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur Sh, 2021-04-17
@Shev_Art_V

Can. You write here the code that will write the product identifier and the added quantity to the cookie

miniShop2.Callbacks.add('Cart.add.before', 'restrict_cart', function(response) {
    //функция
});

Well, here is the reverse action
miniShop2.Callbacks.add('Cart.remove.before', 'restrict_cart', function(response) {
    //функция
});

Product data is in response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question