How to Make Online Course Website Sinhala

මේ පොස්ට් එක මගින්, online course website එකක් පහසුවෙන් හදා ගන්නා ආකාරය පියවරෙන් පියවර ඉගන ගන්න පුළුවන්.

Download Theme Template File

Download

Skip Cart Page Code

add_filter('add_to_cart_redirect', 'cw_redirect_add_to_cart');
function cw_redirect_add_to_cart() {
   global $woocommerce;
   $cw_redirect_url_checkout = $woocommerce->cart->get_checkout_url();
   return $cw_redirect_url_checkout;
}

Change Checkout Order Button Text

// Replace Place Order Button with Static Text in WooCommerce 
add_filter( 'woocommerce_order_button_text', 'ql_replace_place_order_button_text' );
function ql_replace_place_order_button_text() {
   return 'Join Course'; 
}

2 comments

  • Nuwan Bandara

    Installing theme from uploaded file: Course Website Template.zip
    Unpacking the package…

    Installing the theme…

    The package could not be installed. The theme is missing the style.css stylesheet.

    Theme installation failed.

    Please help me

    • A

      Issue ekak nathuwa wada karanawa. Download wena zip file eka, a widiytama Themes > Add New gihin upload kranna.

Leave your comment