V
V
Vladimir Skibin2019-05-22 17:11:36
1C-Bitrix
Vladimir Skibin, 2019-05-22 17:11:36

How to create a structure for a product in Bitrix with a large number of options?

Given:
Goods - glasses, which are essentially constructors. Glasses = frame + left lens + right lens.
In addition to lens variations (Sphere * cylinder * axis * type * tinting) there is also interpupillary distance.
Needed:
Think of how to store it in the architecture of goods in Bitrix, so that the points are correctly displayed in the admin panel (with all selected characteristics) and you do not have to fence your crutches over the storage of goods.
Additions:
If you store all trade offers, then it turns out for one product 1 * 10 ^ 15 options, which is actually not the same compote at all. It would be possible to slightly reduce the variability if all the lens options are scored in advance and a set is made from them (which, unfortunately, is available only in the maximum version), but in this way we reduce all this mess by only 3 orders of magnitude.
There was an option not to create all the options at once, but to create the one you need only when "put in the basket", but this option smacks of a crutch.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2019-05-22
@megafax

Numerical parameters (sphere, cylinder, axis, etc.) can not be stored anywhere.
Type and shading - properties of IB, or HL blocks. Or elements of infoblocks - it doesn't matter.
The result of the user's choice (points) can be stored in the IB, or in your own table.
If this is an IB element, then create an element and stuff everything that the user has chosen by properties.
To manage the prices for the resulting product, specify your PRODUCT_PROVIER_CLASS when adding to the cart. To do this, it will need to be implemented. (the standard class for the example is \Bitrix\Catalog\Product\CatalogProvider ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question