latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: vital vintage

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
EOT to woocommerce customer, not subscriber

By:  vital vintage in: Unofficial Extensions/Hacks

voices: 3
replies: 9

3 years, 9 months ago  vital vintage

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
EOT to woocommerce customer, not subscriber

By:  vital vintage in: Unofficial Extensions/Hacks

voices: 3
replies: 9

3 years, 9 months ago  vital vintage

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Wednesday Mar 27th, 2013 at 6:14 am #45853

I finally gave up trying to switch upon eot to the woocommerce “customer” user role. I just renamed the level 0/free subscriber to “expired gold member” and using user role editor set all the capabilities the same as woocommerce “customer”. So now at least it revert back to the same function as a woocommerce customer and organizes them so i know who has expired for future marketing.
I have looked at the links you provided but if i understand you correctly you should be able to:
– create a woocommerce product that when purchased automatically changes that user’s role to a specific s2 member role and also automatically set the EOT???

**If you can figure out how to do that please help me step by step as i would love to be able to do that but looking at the info presented already i have no clue as to where or what file to begin at. If you detailed/ step by step instructions that would be awesome.

Posted: Monday Mar 25th, 2013 at 11:07 pm #45694

Elizabeth,
Great to hear from someone! How are you? I have actually not corrected the original problem above as stated. I tried every thing like I said about 2 months ago and havn’t tried anything else yet…partly because i was hoping for help on here and partly because i’ve just been focusing on other problems associated with the woocommerce 2.0 updates. I have been needing to come back and address the problem. Because I only have installed this plugin to restrict access to “Gold Member” content. And the problem remains that when demoted to “free subscriber,” the free subscribers have access to gold member content and so obvisiously for that reason and the pure organization factor i need to find a way to acomplish demoting users back to customer. I do believe i even added a plugin or somewhere i was able to attempt to create a setting where i set the default user roles….but even that was unsuccessful. I know if i can remember or if i mentioned it above, i was able to do something that was changing (demoting) to “none.” I always thought if i went back to where i was accomplishing that and figure out the magic word to get it to go from none to customer then I would solve the problem. Any whoo i am still looking for a solution to this issue….just havn’t found it yet. But please keep in contact with me… Im all ears, my website is vitalvintagecoaltion.com and all my contact info is there also! Take care. Oh…and EOT settings should be under each user. go to the user and edit i believe and then you should be able to adjust the EOT time and level. I do all mine manually upon purchase of a separate product i created. I have nothing linked to s2 for purchase and settings. I only use it as a method of control once someone purchases a gold membership for a year. then they will have access to the gold member content for that year. Ohhh and i almost forgot….i do believe you may have to set up a chron job in your cpanel …server side..to run at least once a day a php script that forces the demotion…had to do it on mine if i remember right. So much information hard to remember specifics for two months ago. but i’m here to help..get a hold of me if you need to.

Posted: Saturday Mar 9th, 2013 at 6:22 am #44146

thanks for all the timely help everyone!!!!!!!

Posted: Friday Feb 15th, 2013 at 6:13 am #41830

?php
add_filter(“ws_plugin__s2member_force_demotion_role”, “my_demotion_role”);
function my_demotion_role($default = “subscriber”)
{
return /* I say it is… */ “my_custom_role”;
}
?

Posted: Friday Feb 15th, 2013 at 6:13 am #41829

***************

Posted: Friday Feb 15th, 2013 at 6:12 am #41828

for my demotion role i was using “Gold Member”

and trying for subscriber: “customer”
and my_cust_role: “customer”

And combinations with those values but with no success other than getting it to switch from Gold Member to “NONE” or of course the default “free subscriber”

Viewing 6 replies - 1 through 6 (of 6 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.