How to remove purchase options for non logged in users

Home Forums Legacy Support Support queries How-to & Troubleshooting How to remove purchase options for non logged in users

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #214195
    omimexico
    Spectator
    We want to only allow users who have registered to be able to purchase classes. Workflow: 1. Prospective Student registers first. 2. Admin manually approves registration. 3. Student can log in and then can purchase desired courses. We want to hide the add-to-cart, shopping cart, and checkout to users who are not logged in. Non logged in users should only be able to see courses offered, but not able to purchase until they register first. The add to cart button should be replaced with REGISTER button to those who have not registers, and to to those who are not logged in.   Please provide workflow. Thanks  
    #214199
    omimexico
    Spectator
    The code BELOW does not work, nor does it do what we need it to do. Non registered users and non logged in users should not have an "Add-to-cart" button. They should have "Register" button, and then when clicked, it takes them to the registration page. Once student have registered, admin will manually approve student account.  THEN when student log in, student will be able to purchase.   This code is close, but does not do what we need nor does it work anymore: .single-course div#item-meta{position: relative;font-size: 10px !important;overflow: visible !important;} .single-course div#item-meta .students {position:absolute; right: -1%; margin-top: -1px !important;} .single-course div#item-admins .instructor_course h5.course_instructor>a{color: black !important;}
    #214253
    logan
    Member
    Dear Pal, i Hope you are doing well. regarding your questions, please find the answer below:
    1. you need to create a custom form and then replace the BuddyPress default page.
    2. follow this tip: https://wplms.io/support/knowledge-base/custom-registration-forms-in-wplms/
    3. select this option in wp-admin >> lms >> setting >> custom registration form.
    4. refer: http://prntscr.com/o2t2vp
    5. for those who are not logged in then refer this setting under wp-admin >> lms >> setting >> general setting >> Open Login popup for non logged in users when they click on take this course button for free courses
    6. refer: http://prntscr.com/
    7. add to cart button cant be transfigurate into registration button but i can do one thing. i will share a code which will hide cart button for non logged in users.
    please let me know your thought about no. 6.
    i think i have explained well but if i forgot something please let me know.
    #214337
    omimexico
    Spectator
    This reply has been marked as private.
    #214517
    logan
    Member
    Hello, I think this could help: https://businessbloomer.com/woocommerce-hide-price-add-cart-logged-users/ every changes should be made here only: wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php  Or in in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel:
    #214740
    omimexico
    Spectator
    It works very well. Thanks. We will make additional modifications to make it even better! Thanks
    #214832
    logan
    Member
    Closing this topic. Enjoy the rest of your day and feel free to reach out if you need anything else. We are here 24x7.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to remove purchase options for non logged in users’ is closed to new replies.