Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1682 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Sep 25
180
3
Agu 25
267
4
Agu 25
1473
Block sale. Diselesaikan
3
Agu 25
470
2
Agu 25
552