I
I
IsaevASD2018-04-18 21:11:58
1C-Bitrix
IsaevASD, 2018-04-18 21:11:58

How to implement a list (right/left) in product properties without a trade offer in Bitrix?

There is a product for example: a roller blind. This product has many width and height values ​​from which the price is formed. But the list with the control method (right / left) only increases the number of trade offers at times and does not affect the price in any way.
Can you tell me how to make this control list displayed in the product map without adding it to trade offers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-04-19
@anton99zel

Let's start with whether I understood you correctly:
Do you want the product price to change in the product card if the dimensions of the product change?
There are two options, but I like to work on the second one, although Bitrix administrators will choose the first one:
1. If there are goods with different dimensions, and these dimensions are fixed, for example, you sell only 1.2x0.8 or 1.4x1, 2 meters and so on, then you enter all possible options for offers into the element card as trade offers, and set the cost for each trade offer.
2. If the length and width, i.e. Since the dimensions of the product can be random and the price will depend on some mathematical calculations, it is easier to organize the addition of the product to the cart (and the display of the price, respectively) via the API. Write the usual mathematical calculation of the price, for example, lengthXwidthXprice per 1 linear meter, substitute the result in the API code and when you click on "buy", the product is sent to the cart with the calculated price.
Do the design itself as it is convenient, I mean displaying the price from the selected dimensions, you can use Ajax, you can js, you can just html + css + php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question