N
N
Nicholas2018-09-02 15:11:23
WordPress
Nicholas, 2018-09-02 15:11:23

How to compare and output attribute values ​​in WooCommerce?

Hello. I asked about tying simple goods by color, no one helped. Let's go from the other side.
Online store on WooCommerce. There is a need to break down variable products into simple ones (each has its own URL), and then link them by color. Set identical products to the same model in the (model) attribute, but different color values ​​for each (cvet). We get the value of the model attribute, look for all products with the same value, find, select and display on the product card all the colors found in the database, exactly the same model, with links to other product cards.
Sounds like not so difficult, but is it possible to do this? Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question