J
J
Jupiter Max2020-05-29 08:44:48
1C-Bitrix
Jupiter Max, 2020-05-29 08:44:48

How to form a table with sizes and colors correctly?

Hello. I need to form a color-size table for a product card from trade offers. What happened is shown in the picture.

The client wants to make it so that if the TP has the same color, it is displayed alone, and the fields for the amount are respectively on the same line. Has anyone done something similar?

Here's what happened
5ed0a0941fa35388718062.png

, here's how to do it
5ed0a1355d806864538457.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tgarl, 2020-05-29
@tgarl

It looks like you have a wrong cycle.
you first got a grid of sizes, here I probably would have gone the same way,
and then mark a line for each TP.
you also need to form an array like
'colored'=>[44,46,48,50]
'not colored'=[your size]
and fill in the table using it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question