i added a pricing plan on my wix website
after a member purchased a plan he then purchased another plan now he has two plan
is there a way to allow one plan per member.
if a member already has a plan how can i add a pop up that saying they already have purchased a plan from this website.
Wix Customer Care might be able to tell you if there's a way to do this directly using the pricing plan feature.
If not, you should be able to achieve this with code using the wix-paid-plans API.
You can check what plan a user already has by calling getCurrentMemberOrders( ). If they have no plans, let them order one. If not, you can ask them if they wish to cancel their current plan first. If they want to cancel, you can cancel a plan using cancelOrder(). After that, the user can then order a plan.
I hope this helps.
ok thanks ill try to add some codes to my pricing plans page on my website.
hi thanks for these great advises but i was wondering where should i put it specifically on my page should i put it at the pricing plan page?
hi thanks for the reply. may i know where should put the codes?