I have followed link below to create a custom solution for linking products as "variations" without relying on Shopify's default product variant functionality. https://www.youtube.com/watch?v=bPDpDnFslVs
Now I need to modify this function to suit more to my website I have more than one attributes as variations, for example
Now I have size metafields for the grouped products are:
Product A: 1ft by 1ft Product B: 1ft by 1ft Product C: 1ft by 1ft Product D: 18" by 18" Product E: 18" by 18"
The output shows 1ft by 1ft 3 times, then 18"by18" 2 times.
I need the duplicate values to be displayed as a single value. When user click on it, it will be lead to one of the 3 products that shares the same value ( doesn't matter which one)