I am selling a membership role through UC that enables access to premium content. I want to limit the amount of time one can purchase to 2 years total during a registration period. The global time limit on 1 purchase is 1 year. Therefore I am restricting the product qty to 2.

I'd like to ensure that someone does not purchase 2 years, return to cart and purchase 2 more, etc ..... If I choose to restrict the limit to lifetime, then after their two years expiry will they still be restricted from purchasing any more because they already purchased 2?

I want a hands off system.

Maybe I could set orders to auto delete after 23 months. I think if the order is gone purchase restrictions will be removed also.

Do you have any helpful ideas? I'd like to leave the order history in tack for the customers to reference.

I thought about adding a secondary role "hide_cart" to hide the purchase button blocks after a purchase was made for 23 months.

Odisey

Comments

raulmuroc’s picture

Status: Active » Closed (fixed)

I'd like to ensure that someone does not purchase 2 years, return to cart and purchase 2 more, etc

Just limit through "Ubercart Restrict Qty UI" to 1 item max purchase as Global limit. Then, in "Role assignment settings" set expiration period to 2 years.

With this, you will let the user just acquiere one registration which extends for 2 years. After that time, he will have to purchase again.

A good way to control the flow is to create a Rule that basically send you an e-mail confirmation for a new purchase. That will let you decide if CONFIRM the purchas or not so if you don't wish that user can purchase 2+2+2+2.... just deny that e-mail (not accept) and the rule will not finish the purchase :-)