Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › How to remove purchase options for non logged in users
- This topic has 6 replies, 2 voices, and was last updated 4 years, 10 months ago by logan.
Viewing 7 posts - 1 through 7 (of 7 total)
-
AuthorPosts
-
June 16, 2019 at 7:06 pm #214195omimexicoSpectatorWe 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. ThanksJune 16, 2019 at 7:32 pm #214199omimexicoSpectatorThe 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;}June 17, 2019 at 8:31 am #214253loganMemberDear Pal, i Hope you are doing well. regarding your questions, please find the answer below:
- you need to create a custom form and then replace the BuddyPress default page.
- follow this tip: https://wplms.io/support/knowledge-base/custom-registration-forms-in-wplms/
- select this option in wp-admin >> lms >> setting >> custom registration form.
- refer: http://prntscr.com/o2t2vp
- 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
- refer: http://prntscr.com/
- 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.
i think i have explained well but if i forgot something please let me know.June 17, 2019 at 2:52 pm #214337omimexicoSpectatorThis reply has been marked as private.June 18, 2019 at 1:32 pm #214517loganMemberHello, 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:June 19, 2019 at 8:52 pm #214740omimexicoSpectatorIt works very well. Thanks. We will make additional modifications to make it even better! ThanksJune 20, 2019 at 12:27 pm #214832loganMemberClosing this topic. Enjoy the rest of your day and feel free to reach out if you need anything else. We are here 24x7. -
AuthorPosts
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.