#Torx

1 messages · Page 1 of 1 (latest)

spiral raftBOT
pulsar timber
#

hi! yeah I don't think we really natively support that in the PromotionCodes API.

Might be easier to not use PromotionCodes and instead check the customer's email against your own list in your own code logic, and if that passes, use the coupon parameter to directly apply the coupon. But that's not compatible with PaymentLinks

#

so not really any good option here, beyond I guess creating a whole bunch of PromotionCodes as you mention

pine crown
#

Ok, I think I will just hide that field for now in woocommerce, creating a bunch of promotion codes looks like a bad idea.

#

Thanks !

#

If you are still there, is the"max_redemptions" field of PromotionCode objects like the same field in Coupon objects, accros all customers or is it the number of time it can be used per customer ?

pulsar timber
#

it's a global count for the given PromotionCode object

pine crown
#

Is there any way to set a Customer scoped max redemption ?

pulsar timber
#

you can pass customer and max_redemptions together as parameters when creating the PromotionCode object, which should mean that it can be redeemed that number of times for that customer ID cus_xxx only