#whimsy_api

1 messages ¡ Page 1 of 1 (latest)

lean pewterBOT
#

👋 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/1304065913364025344

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hasty crater
#

in other words, does creating new price, and setting product field, with product id which already has default price, override that default price? as i did in the image

winged plaza
#

hi there!

hasty crater
#

hi

winged plaza
#

I'm not sure I understand, but you cannot update the amount of an existing Price. so you would need to create a brand new Price, either on the same Product, or on a new Product.

hasty crater
#

yeah yeah im doing that as you can see in this picture, but my question is:

winged plaza
#

since you already wrote the code, why not test it to see if it's needed or not?

#

but no, I don't think we would automatically change the default price

hasty crater
#

hm, what does then happen when i provide existing product to new price

#

i didnt find anywhere that products could have multiple prices

winged plaza
#

i didnt find anywhere that products could have multiple prices
absolutely, a Product can have as many Prices as you want

#

that's why there's a "default_price"

hasty crater
#

but what's then the property for other prices?

#

can i see that somewhere by getting the product or i have to get all prices and check manually

winged plaza
hasty crater
#

hm ill check