B
B
Bce_ycTaJI2022-01-11 08:59:56
MODX
Bce_ycTaJI, 2022-01-11 08:59:56

How do I restrict the addition of an item to the cart?

There is a field of type number. There you can have a limiter, and you need the maximum value from this field to be the limiter for the product. The problem is that when you select the maximum value in this field in the product card, then as many products as you like can be added by clicking the "to cart" button. Or not in the product card, but in the catalog, you can also choose as you like. It is necessary that the value of how much is already in the basket is taken, and not to add more goods than possible. I'm having a hard time with modx, so I'm asking for help from you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tatyana Anufrieva, 2022-01-11
@kalisto74

You are displaying an already selected value in the basket, remove the input.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question