• Resolved iamalif

    (@iamalif)


    For the paid courses, it shows ‘add to cart’. But I want to use buy now here to make payment process easier for the users. I’m using woocommerce. Pls do something.

Viewing 1 replies (of 1 total)
  • Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @iamalif

    Copy the code and paste it on your themes functions.php file.

    `// Change add to cart text on single product page
    
    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' );
    
    function woocommerce_add_to_cart_button_text_single() {
    return __( 'Buy Now', 'woocommerce' );
    
    }
    
    // Change add to cart text on product archives page
    
    add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_add_to_cart_button_text_archives' );
    
    function woocommerce_add_to_cart_button_text_archives() {
    
    return __( 'Buy Now', 'woocommerce' );
    
    }
    
    `

Viewing 1 replies (of 1 total)
  • The topic ‘Buy Now for tutor lms courses’ is closed to new replies.