HomeHome Product Discus... Product Discus...SmithCartSmithCarthow do you get a purchased role to expire on a set day?how do you get a purchased role to expire on a set day?
Previous
 
Next
New Post
2/11/2011 10:51 AM
 

I want to allow members to purchase a membership on our website that will expire on a particular day. I see in the documentation for the smith cart that you can set the number of days the role will be added but I'm not sure if you support expiration on a fixed day. Any ideas?

 
New Post
2/11/2011 7:01 PM
 

The module doesn't allow you to enter the date, but it allows you to enter the number of days.

Christian

 
New Post
2/14/2011 2:43 PM
 

That's unfortunate. We are a non-profit organization and our bylaws state that memebrship is from date x to date y. During date Y we have our annual general meeting and new officers chosen etc.. It is unfortunate that this will become a manual process on date y to figure out if someone has enough "days" remaining to continue to be a member. One way that I thought I could leverage the fact that only days can be entered would be to add 365 days whenever some purchases a membership and then on date y check to see if their expiration would cover the next 365 days. Is there another module that can manipulate the expiration date of a security role to set it to be a particular date? That might could be used in conjunction with this module.

 
New Post
2/15/2011 5:40 AM
 

There are modules out there to do such things... however, it wouldn't be too difficult to write a SP that gets called on completion, that looks at the date of the sale in the cart, assigns the role, and sets the expiration date.

A dozen lines of code, tops. :)

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCarthow do you get a purchased role to expire on a set day?how do you get a purchased role to expire on a set day?