Course button shortcode

Home Forums Legacy Support Support queries How-to & Troubleshooting Course button shortcode

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #334030
    lepeolmedo
    Spectator
    Hi, I want to build the course descriptions with Elementor to add more design to them. According to Mr Vive if I use a course layout from VibeBP I can't use Elementor to edit course descriptions: Here the ticket . But if I use Elementor to edit the course without a layout, I don't see "TAKE THIS COURSE" button. How can I add this button with a shortcode? Is there any solution for this?
    #334077
    Diana
    Participant
    You can use this shortcode [course_button]
    #334172
    lepeolmedo
    Spectator
    Works! Thanks. Is there any list of all wplms shortcodes?
    #334175
    Diana
    Participant
    This reply has been marked as private.
    #334255
    lepeolmedo
    Spectator
    Would be great to have it in docs.wplms.io . Is there any for curriculum, students count and course rating?
    #334257
    lepeolmedo
    Spectator
    And the reviews of the course
    #334278
    Diana
    Participant
    This reply has been marked as private.
    #336378
    lepeolmedo
    Spectator
    Hi, Is there any shortcode for course price?
    #336541
    Diana
    Participant
    No Shortcode available for this
    #336554
    lepeolmedo
    Spectator
    If helps someone, here I found a code to paste in functions.php that works great:
    
    // Shortcode Woocommerce price //
    
    add_shortcode( 'cl_product_price', 'cl_woo_product_price_shortcode' );
    
    function cl_woo_product_price_shortcode( $atts ) {
    	
    	$atts = shortcode_atts( array(
    		'id' => null
    	), $atts, 'cl_product_price' );
     
    	if ( empty( $atts[ 'id' ] ) ) {
    		return '';
    	}
     
    	$product = wc_get_product( $atts['id'] );
     
    	if ( ! $product ) {
    		return '';
    	}
     
    	return $product->get_price_html();
    }
    
    ?>
    
    Shortcode: [cl_product_price id="xxxx"] xxxx = product id
    #336690
    Diana
    Participant
    Yes, possible with custom code. You can also add this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php It will be safe there Closing this topic now
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Course button shortcode’ is closed to new replies.