#npx_pricing-table
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1218227290278727811
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
So i would like to name the quanties "100g / 3.5oz" and "200g ..."
I do not see a way to achieve this. so what would be the best way moving forward without implementing my own checkout page yet
Right now Pricing table has no way for you to specify a default quantity - the only way for you to implement this w/ pricing table would be create two prices
- One where you specify the unit_amount for every 100 g (so quantity: 1 is the price for 100 g)
- One where you specirfy the unit_amount for every 200g
but adding two prices results in 2 uhm "boxes"
thus for 2 products it becomes 4 boxes right?
so i dont get to use the dropdown
or am i missing something
Let's back up for a minute - do you have a screenshot of what you're trying to accomplish?
yes!
npx_pricing-table
may i not upload a screenshot here?
you should be able to
it keeps failing the upload hum
no matter which image i try to upload it will fail. i feel this is a restriction or discord is failing
i could send you the link to the website im currently working on but im not super comfortable with that as this thread will be searchable
yeah i just tried as well and uploading is failling for me as well
looks like it's an issue on discord's end (https://discordstatus.com/)
lemme try to describe it. using graduated pricing in a pricing table, and setting the pickable quantities to 2, i get a dropdown on the pricing table, that lets me choose the quantity
but the content of the dropdown will be "Up to 1 per month" and "2+" or "2-2" depending on how many tiers i have.
i would like the dropdown options to be "100g / 3.5ounce" and "200g /. ... " instead
so i could add a javascript to find the dropdown element and manipulate the dropdown. but that would be nasty.
Yeah I see what you mean now - unfortunatley I don't think there's any way to customize that text ๐ฆ
alright. may i add one more question then? i added prices in JPY and USD. i allow shipping to Japan and US. how is determined which currency is chosen for the user, as i keep it coming up as JPY no matter what i do
or can you imagine another way of allowing my 1 product having 2 variations with 1 price each, and make it choosable with a dropdown like that?
or is the only way implementing my custom checkout, like build a form, and depending on the form value, link to the appropriate stripe checkout link with the respective price?
I don't think there's a way to get the exact behavior you're looking for with pricing tables - graduated prices are the onle one that have that dropdown as far as I know, and they don't have the level of customization you need in taht text.
Backing up for a minute though - are you sure you want graduated pricing (100g would be charged for 1500 and the next 100 would be charged for 1400) or do you actually want volume based pricing (all 200g would be charged for 1,400 per unit)
100gram should ne 1500jpy and 200g should be 2900jpy
the graduated pricing is my way of getting the quantity selection
as i did not find a way to select a product "variation" like that
On the checkout page if you enable adjustable quantities w/ pricing table you'd also be able to get quantity selection though.
So instead of selecting the quantity from the dropdown, the can adjust the quantity based in the Checkout page itself
well, will i be able to "name" it there?
technically i see it less as quantity and more as a product variant. but i cannot get those 2 variants on the same page and using the pricing table i want to avoid showing 4 products (all variants) and only show 2 and then have them pick the variant with the price accordingly
Ah! I think it's just clicked. You're really trying to offer 4 different subscription types
- variant 1 for 1500jpy a month (gives you 100grams)
- variant 1 for 2900jpy a month (gives you 200grams)
- variant 2 for 1500 a month (gives you 100 grams)
- varient 2 for 2900jpy a month (gives you 200 grams)
You used graduated pricing as a way to try and nicely model this in the pricing table, but really you don't want adjustable quantities at all
(prices for variant 2 will differ, but i just put it together)
yes you got it!
so i created 2 products and added 2 price objects each. but the generated price table is not according to what id like to see as it will have 1 option per price. quantity allowed me to shrink that haha
Yeah this is a bit of a tricky one if you don't want the 4 unique boxes for each variant. Honestly I'd say the best thing to do is implement your own version of the pricing table so that it looks exactly the way you want, but let me test one thing really quick with cross sells to see if that could be an option
cool thank you!
Okay so it's not perfect, but what you could do as an alternative is define a cross-sell (https://docs.stripe.com/payment-links/promotions#cross-sells) for the additional 100g (the screenshot is just a quick example that I whipped up to show you what it'd look like) and you could also specify product features (https://docs.stripe.com/payments/checkout/pricing-table#product-features) to make it clear that they should be able to select the extra 100grams in checkout
- create product + price for 1500 jpy (gives you 100 grams)
- create a separate product + price for 1400 jpy for the additional 100 grams.
i think thats quite clever, ill give it a try.
regarding implementing my own pricing table, is there any resource i can look up (im familiar with programming, just dont see how it ties into stripe except for changing the checkout link you go to depending on the dropdown selection)
(is there a way to completey discard everything that was done in the test mode?)
(is there a way to completey discard everything that was done in the test mode?)
You can delete all your test data (https://docs.stripe.com/test-mode#delete-test-data)
you are a godsend.
is there any resource i can look up (im familiar with programming, just dont see how it ties into stripe except for changing the checkout link you go to depending on the dropdown selection)
There aren't any specific resources I know of, but you're correct that the UI piece doesn't really tie into stripe that much. At a minimum, you'd want a dropdown + a button that would send your customer to the right checkout link based on what they selected in the dropdown
alright, and i could query the api for the products and prices etc
yup!
And going wayyyy back to your JPY currency conversion question - if you're using multi-currency prices (https://docs.stripe.com/payments/checkout/multi-currency-prices) I believe this is based on your locale but you can force a specific locale while testing by using specific emails (https://docs.stripe.com/payments/checkout/multi-currency-prices#testing)