T
T
taurus902015-07-23 16:01:51
PHP
taurus90, 2015-07-23 16:01:51

Bitrix: Color filter not working properly?

There are a lot of goods in the non-bitrix online store, many have the "Color" property, but it does not always mean "red" or "green", sometimes "panels - black".
As a result (as I understand because of this), the filter on the catalog pages does not display all really "black" offers, for example.
What to do?(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2015-07-24
@e-antonov

You need to fill in the colors correctly and then everything will be fine. as an option to make the color property not a string, but a list with given options or binding to the elements of some color guide. then a talented content filler who writes in the colors "black" "black" "panel-black" "anything-black" will not be able to show his creativity in unnecessary places.
this is how I understand your problem. If I misunderstood, please correct

A
Alexander, 2015-08-02
Madzhugin @Suntechnic

Unfortunately, the catalog on the site is not filled in manually, but is loaded from outside, and it will be very difficult to change the essence of the property.

Not true.
Refine the export to a normal state and unload the correct values.
Impossible?
Refine the import on the Bitrix side - let it import the correct values.
Complicated?
Make hooks for adding/updating an element, parse color values ​​in them and set correct colors for elements. This option is always possible.
Working with crooked data is stupidity. In the end, correcting the data when loading / updating is no more difficult than when filtering, simply by the definition of the task, but you need to do it once, and not every time on the filter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question