Answer the question
In order to leave comments, you need to log in
How to implement variations?
Good afternoon. I have an array with product variations:
Array
(
[0] => {"item_id":19,"item_image":"","item_variation":{"steklo":"ударопрочное","material":"металл"},"item_price":"110"}
[1] => {"item_id":20,"item_image":"","item_variation":{"steklo":"обычное","material":"металл"},"item_price":"130"}
[2] => {"item_id":21,"item_image":"","item_variation":{"steklo":"ударопрочное","material":"пластик"},"item_price":"150"}
[3] => {"item_id":22,"item_image":"","item_variation":{"steklo":"ударопрочное","material":"дерево"},"item_price":"160"}
[4] => {"item_id":23,"item_image":"","item_variation":{"steklo":"обычное","material":"пластик"},"item_price":"175"}
[5] => {"item_id":24,"item_image":"","item_variation":{"steklo":"обычное","material":"дерево"},"item_price":"199"}
)
Answer the question
In order to leave comments, you need to log in
You can use Set . It allows you to store unique values.
A good article about sets and what to eat them with
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question