P
P
Pavel Sidorov2020-07-07 12:05:33
1C-Bitrix
Pavel Sidorov, 2020-07-07 12:05:33

How to output the number of packs a user wants to buy?

Good afternoon.

There is a standard catalog.set.constructor

It does not have the ability to display the number of sets to add to the cart.

Maybe someone did. Please share. Or tell me how to do it?

5f043ac875be2192349088.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Sidorov, 2020-07-12
@pavel__sidorov

If anyone comes across a similar issue.
Implemented the following way. I DO NOT claim that it is correct, but working.
1. We refuse catalog.set.constructor, we replace all this with the binding to elements property.
2. Create a separate infoblock
3. Use ajax jquery to add a product to the cart
4. Use the API to display related items
5. Use a separate form with a send to cart button
6. Add all the products we need and their properties, prices to the form.
7. Quantity goes as a common denominator to all goods in the form.
8. All this collection is added to the basket with one click.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question