Ir al contenido
Menú
Se marcó esta pregunta
1750 Vistas

Setup Info: I have a product with multiple attributes: Color, Size, and Package. The "Package" attribute has two values: Single, and Pair.

I would like to group in the pivot view, first by product and then by the "Package" attribute type/value (not variant).


Currently I can group like this (Product > Product Variant):

  • Product A
    • Product A: Variant 1 (Color: Red, Size: SM, Package: Single)
    • Product A: Variant 2 (Color: Red, Size: LG, Package: Single)
    • Product A: Variant 3 (Color: Red, Size: SM, Package: Pair)
    • Product A: Variant 4 (Color: Red, Size: LG, Package: Pair)
    • Product A: Variant 5 (Color: Blue, Size: SM, Package: Single)
    • And so on...
  • Product B:
    • Similar to above...


What I want is to group like this (Product > "Package" Attribute):

  • Product A
    • Product A: Package: Single
    • Product A: Package: Pair
  • Product B:
    • Product B: Package: Single
    • Product B: Package: Pair


I understand some products might not have the "Package" attribute. In those cases, I would like to just not show anything.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 24
1648
0
feb 21
3126
2
mar 25
376
1
nov 24
1495
0
ago 24
1545