Shopify themes, liquid, logos, and UX
Hello,
I have a customizable product with a unique SKU.
I need to understand on which different object Shopify will display 2 distinct products in the cart if they are customized differently :
product.option or product.variant ?
Thanks !
Here's how the relationship works between product options, variants, and displaying distinct products in the cart:
Product: The product represents the base item you are selling. It may have one or more customizable attributes called product options. For example, if you're selling a t-shirt, the product options could be size, color, and material.
Variants: Each product option can have multiple variants. Variants are specific combinations of the product options. For example, a variant could be a "Large, Red, Cotton" t-shirt. Each variant has its own SKU, price, and inventory.
Cart: When a customer adds a product to the cart, it is the variant that gets added, not the product option. If a customer selects different options for a customizable product, Shopify treats them as separate variants, even if they belong to the same product.
Thanks, but I need to understand how this translates into code
For example if I have a personnalise product with print on demand so my product is always the same (same SKU)
The customer can custom 5 part of the product design printed by choosing one of 10 different colors for each part.(same 10 colors for each part )
Like that :
Part1 -ColorChoice : red, green, yellow, blue,…
Part2-ColorChoice: red, green, yellow, blue,…
…
I need to understand if :
Part1, … have to be a {{ product.option }} and for example the value red a {{ product_option.selected_value }} ?
Or
Part1, … have to be a {{ product.option }} and for example the value red a {{ variant.option1 }} ?
The goal is to have 2 distincts product in cart when customization is different and because the product is the same with just a different print, the same SKU for inventory.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024