leejay 4 Posted March 1, 2019 Share Posted March 1, 2019 Hi everyone, I'm having some troubles creating my Wordpress website. I have been working on this website for some time now. I'm currently working on a custom membership system and I need some help regarding user roles. I will try explain as best as I can and I really hope somebody can give me some detailed advice, I would be rather grateful. When a visitor comes to my website and goes to the download page there are two categorys which are Free Items and Pro Items. As the user is not registered they will not see an Add to cart button or the price tag on both category pages or product pages. When a user first registers to my website they are granted with a Silver membership automatically which allows them to download items from the, "Free Items," category. This then hides the add to cart and price tag as the item is downloadable and free. There are another 2 Memberships which are Gold and Platinum. As the user had only got a free membership if they go to the pro items category they will be able to buy the product unless they have one of the memberships specified above which will then remove the add to cart button and the price tag and shows a download button Instead. When the user purchases the membership Gold the role Customer is automatically changed to the role Gold Member for the settings to work within the download system which then gives them access to the pro items category. However the Gold Membership is active for 30 days and once it expires the role Gold member needs to be changed back to the role Customer automatically and that's what I'm struggling to do. All advice and support is appreciated. Link to comment Share on other sites More sharing options...
Mairon 1 Posted March 1, 2019 Share Posted March 1, 2019 Just a few questions from my side of to understand it better. Do you have the current roles installed or do they still need to be created? Do you already use a plugin for your download page? If no to both questions I might advice you to take a look into woocommercehttps://nl.wordpress.org/plugins/woocommerce/ they might offer what you're looking for. Here's an extra link to woocommerce and their roles / groups : https://learnwoo.com/woocommerce-understand-user-roles-capabilities/ A lot of wordpress sites use woocommerce to create a shop or a download page for their site. https://yithemes.com/themes/plugins/yith-woocommerce-automatic-role-changer/?refer_id=1061975 The plugin metioned above might also help with automatic role changing? Woocommerce is free but also offers prenium plugins to modify user roles Quote Plugins modifying WooCommerce user roles (Premium) WooCommerce user roles offer great possibilities to create varied pricing models for your store. You will find quite a few premium WooCommerce plugins to set up pricing strategies on your store. This is basically the only advice I have to look into woocommerce. Link to comment Share on other sites More sharing options...
titcrunch 182 Posted March 3, 2019 Share Posted March 3, 2019 read the codex : https://codex.wordpress.org/Function_Reference/current_user_can Best Regards Titcrunch French webdesigner in camel Design, Support, help and tutorials in : Forum Camel Design. Link to comment Share on other sites More sharing options...
Alchemikx 0 Posted March 3, 2019 Share Posted March 3, 2019 Jebac disa Link to comment Share on other sites More sharing options...
leejay 4 Posted March 4, 2019 Author Share Posted March 4, 2019 On 3/1/2019 at 2:39 PM, Mairon said: Just a few questions from my side of to understand it better. Do you have the current roles installed or do they still need to be created? Do you already use plugin for your download page? If no to both questions I might advice you to take a look into woocommercehttps://nl.wordpress.org/plugins/woocommerce/ they might offer what you're looking for. Here's an extra link to woocommerce and their roles / groups : https://learnwoo.com/woocommerce-understand-user-roles-capabilities/ A lot of wordpress sites use woocommerce to create a shop or a download page for their site. https://yithemes.com/themes/plugins/yith-woocommerce-automatic-role-changer/?refer_id=1061975 The plugin metioned above might also help with automatic role changing? Woocommerce is free but also offers prenium plugins to modify user roles This is basically the only advice I have to look into woocommerce. 11 Thank you for your reply, I have now fixed the issue with a paid plugin. Thank you for your help! On 3/3/2019 at 3:55 PM, Alchemikx said: Jebac some Sorry? 1 Link to comment Share on other sites More sharing options...
Recommended Posts