#nerder

1 messages ยท Page 1 of 1 (latest)

digital pecanBOT
valid turret
#

Hello ๐Ÿ‘‹
Give me a moment to catch up and I'll respond as soon as I can ๐Ÿ™‚ Thanks

#

Ah thanks for flagging, I'll let the team know and get it updated asap.

serene hemlock
#

One question tho

#

since we are here

valid turret
#

Sure

serene hemlock
#

just to double check my reasoning

#

if I only have the price id in my client

#

in order to "archive" that price

#

I need to:

  1. retrieve the price
  2. check if is the default price on the product
  3. if it is, update the product to remove the default_price
  4. then archive the price
#

also I guess I need to keep into account that if there are multiple prices for the product I should change the default to a random other price?

valid turret
#

that's correct, yup.

serene hemlock
#

doing all this in a transaction I guess

valid turret
#

doing all this in a transaction I guess
Sorry, not sure I follow

serene hemlock
#

Sorry, this is not actually related to Stripe

#

thank you so much

valid turret
#

NP! ๐Ÿ™‚ Happy to help