A
A
Alexander2020-08-10 17:37:03
1C-Bitrix
Alexander, 2020-08-10 17:37:03

How to add related products to the main product in the order?

Bitrix edition small business. The task is to make it so that the list of additional products is displayed in the product card, but additional products are not displayed in the basket and on the checkout page. When adding a related product to the main one, the price of the main one should change, but the display of related products from the user must be hidden in the cart and when placing an order, so that the price simply changes.

For example, we have a pizza product and, in addition to pizza, a buyer can buy an additional product, sauce, for it. We select sweet and sour sauce in the product card, then click buy, on the checkout page we only display pizza, the sauce is not visible, while the price of the pizza will be increased by the cost of the sauce that we have chosen for it. After placing an order, the order will include pizza and sweet and sour sauce.

Please tell me how to solve this problem. Maybe create some additional properties for the basket product in which to store the identifiers of related products, not the property of the catalog product, but the property of the product that is currently in the basket? I need to understand in which direction to look at all in order to realize this possibility in the order.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question