İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1713 Görünümler

I get a sale order line :

"product_id" => array:2 [

      0 => 55962

      1 => "<text>"

    ]

    "product_template_id" => array:2 [

      0 => 56085

      1 => "<the same text>"

    ]
__
=> differente ids but the same name ???

Avatar
Vazgeç
En İyi Yanıt

Hi,

product_id

Refers to the specific product variant (product.product model).

Variants are tied to a product template (product_template_id) but differ based on attributes like size, color, etc.

product_template_id

whenever you are creating Product (product.template) than same will be created in also (product.product)

it contains the main product and with list of product variant (attributes)


Hope it helps

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Eyl 25
273
3
Ağu 25
381
4
Ağu 25
1517
Block sale. Çözüldü
3
Ağu 25
540
2
Ağu 25
636