Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1654 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 25
178
4
srp 25
1428
Block sale. Vyřešeno
3
srp 25
421
2
srp 25
513
0
srp 25
229