#RJC24
1 messages · Page 1 of 1 (latest)
hello! it depends on how you've configured your products and prices - you can add in a Description for the Product and that'd show
so you could have Product #1 : Tee - M, Product #2 - Tee - S
Ahh that makes sense. Perhaps I've been thinking about this in a more complex way. If I just added four sizes, such as S, M, L, XL, for each item on Stripe's Dashboard, then I could just use that product ID in my code. Is that correct? And that way the product id from Stripe would be associated with what is displayed on the Stripe Checkout session.
i'd test it out to make sure everything works as per what you expect
So right now I have a dropdown selector. I can pass that state to my shopping cart, but is there a way to display that in the Stripe Checkout. Sorry if this is redundant, I've been at this for a while. Essentially I'd like to display the size, so I don't know if that's possibly via Metadata or Description on the stripe.checkout.sessions object. If it was size 'M', I could pass that along. That way I could only have for example 4 tshirts in my Stripe Products, and then the metadata would tell me what I need to ship to the customer. Does that make sense?
But I would also like to display that information on the Stripe Checkout session. If it is only possible to display that information by having a separate product id let me know.
you should try both methods and see which ones you prefer / works i.e. either create a single product and then multiple prices with different names e.g. S,M,L,XL
Or one product and one price for each size and tee
I would stick with this method but I cannot seem to find a solution to pass the size along to be displayed with the product info on the Stripe Checkout session.
which method specifically?
On Stripe Products, I only have 4 products. Two are shirts which require sizes S,M,L,XL. The approach I've taken is adding a dropdown selector which displays the sizes from an array located in my file products.js. Then I pass the state of the selected size to the shopping cart so the customer can know what size the purchase along with the price and item description. When I go to the Stripe Checkout Session all I can see is the info associated with the Stripe product id, which is the image and product name.
I just would like to know if it is possible on the stripe.checkout.sessions object if there is a way to pass along the size data, which then can be displayed on the Stripe Checkout session which displays all of the items the customer would like to purchase. It's for user experience but also so I can know what to ship the customer.
there're two options which you can try out here :
either create a single product and then multiple prices with different names e.g. S,M,L,XL, or
Or one product and one price for each size and tee
Would the first option be done from the Stripe Products page on the Dashboard or in the code?
you can do it either way, but to test it out, it'll probably be faster(easier) to do it via the Dashboard
Got it, I'll give that a go! Thank you kindly for all of your help, I really appreciate it.