Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1305 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 24
1037
0
thg 2 21
2515
2
thg 3 25
376
1
thg 11 24
716
0
thg 8 24
833