#meldin-checkout-productdetails

1 messages · Page 1 of 1 (latest)

distant mothBOT
keen solstice
#

meldin-checkout-productdetails

#

@vivid rivet you'd need a separate Product object per color/description/etc. in that case

vivid rivet
#

I am sorry I dont understand

#

On the app everything works good but when I pass the product to the cheokout I cannot see which color user choose.

keen solstice
#

Checkout shows information based on the Product you created. So if your Product has details about a specific color, it will show that, if it doesn't it won't.
I can see you're confused but I think the first step is to understand what Checkout shows right now coms from the underlying Product and Price you already created

#

Now if you have say a t-shirt in Red, Blue and Green and you want to show that information, you need a separate Product object for each and pick the right one to show on the Checkout Session

vivid rivet
#

So if I understand good from client side I am sending product id color and qty and then on the backend I dont have to have a some specific property in params or line_items right?

keen solstice
#

You would use a Price id price_123 associated with a Product id prod_ABC that maps to the right color version

vivid rivet
#

Ok I got it