Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Sell course access by code not Woocommerce
Tagged: not free, WooCommerce
- This topic has 8 replies, 2 voices, and was last updated 6 years, 2 months ago by Diana.
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
September 24, 2018 at 3:34 pm #177534yawikaSpectatorHello! I have option to sell code for courses access. So I don't need to install Woocommerce and make website more complex. But when I set up courses and make them not free they are still free. How can I set up it right without Woocommerce and PMPro?September 24, 2018 at 4:11 pm #177536yawikaSpectatorThis is the screenshot how it looks like in frontend http://prntscr.com/ky5p5n When I click the button Take this course it redirect to external link, it is ok. But I don't know how to set up price here .. Without WoocommerceSeptember 25, 2018 at 11:44 am #177639DianaParticipant@yawika, I can add a setting in the course settings using custom code. So whatever you'll add there it will be visible for the course. Let me know if you want this. So if you'll add the course price in that setting. It will be visible on the front end.September 25, 2018 at 11:54 am #177641yawikaSpectatorYes please, send me the code :) And I will insert in function.php, am I right ?September 26, 2018 at 12:39 pm #177782DianaParticipantThis reply has been marked as private.October 3, 2018 at 10:03 am #178521yawikaSpectatorIt doesn't help. Because there is label Free anyway. How to remove this label ?? http://prntscr.com/l1mb6g I have price label only in open course page, not in the all courses page and there are I show that all my courses are free ...October 4, 2018 at 11:38 am #178693DianaParticipant@yawika, Paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customier.php This code will add a setting in frontend course settings section. Whatever you'll add there it will be visible as a course price in course detail widget //Show Price for the course from custom tab add_filter('wplms_course_creation_tabs','front_end_settings'); function front_end_settings($settings){ $prefix = 'vibe_'; $arr=array(array( // Text Input 'label' => __('Custom item menu','vibe-customtypes'), // <label> 'desc' => __('Put description','vibe-customtypes'), // description 'from'=> 'meta', 'id' => $prefix.'field1', // field id and name 'default'=> 'custom ', 'type' => 'text' // type of field )); $fields = $settings['course_settings']['fields']; array_splice($fields, 1, 0,$arr ); $settings['course_settings']['fields'] = $fields; return $settings; } add_filter('wplms_course_details_widget','wplms_custom_course_details'); function wplms_custom_course_details($settings){ $id = get_the_ID(); $custom_price = get_post_meta($id,'vibe_field1',true); }October 17, 2018 at 7:52 am #180366yawikaSpectatorIt doesn't help! It still have Free label ....\ http://prntscr.com/l6zoxo Please see the video may be it help to you understand what I mean... https://www.useloom.com/share/0ad44725d7854431be401f2342e1a3aeOctober 18, 2018 at 7:15 am #180509DianaParticipant@yawika Yes, the above code will not change anything in the course directory. That's why the label is showing it as a free course. Do you want me to change the label there and show the free course label as a paid course
-
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘Sell course access by code not Woocommerce’ is closed to new replies.