Sell course access by code not Woocommerce

Home Forums Legacy Support Support queries How-to & Troubleshooting Sell course access by code not Woocommerce

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #177534
    yawika
    Spectator
    Hello!   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?
    #177536
    yawika
    Spectator
    This 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 Woocommerce
    #177639
    Diana
    Participant
    @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.    
    #177641
    yawika
    Spectator
    Yes please, send me the code :) And I will insert in function.php, am I right ?
    #177782
    Diana
    Participant
    This reply has been marked as private.
    #178521
    yawika
    Spectator
    It 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 ...  
    #178693
    Diana
    Participant
    @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); }  
    #180366
    yawika
    Spectator
    It 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/0ad44725d7854431be401f2342e1a3ae
    #180509
    Diana
    Participant
    @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
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Sell course access by code not Woocommerce’ is closed to new replies.