Tag: woocommerce

  • wordpress woocommerce storefront tab to accordion

    tab templates/single-product/tabs

    function.php

    Β 

    /** * @snippet Move product tabs beside the product image - WooCommerce */ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 60 ); add_filter('woocommerce_product_description_heading', '__return_null'); add_filter('woocommerce_product_additional_information_heading', '__return_null');
  • WooCommerce Storefront Child Theme: Remove Sidebar @ Single Product Page

    Hide the sidebar on product pages of Woocommerce Storefront child theme. The following snippet disables the sidebar with no additional CSS required, whilst still making the product page content area 100% wide.

    /** * Disable sidebar on product pages in Storefront. * * @param bool $is_active_sidebar * @param int|string $index * * @return bool */ function product_remove_sidebar( $is_active_sidebar, $index ) { if( $index !== "sidebar-1" ) { return $is_active_sidebar; } if( ! is_product() ) { return $is_active_sidebar; } return false; } add_filter( 'is_active_sidebar', product_remove_sidebar', 10, 2 );

    code to the functions.php file in your Storefront child theme.

  • woocommerce redirect to a custom page after logging out

    // redirects for login / logout
    add_filter(‘woocommerce_login_redirect’, ‘login_redirect’);

    function login_redirect($redirect_to) {

    return home_url();
    }

    add_action(‘wp_logout’,’logout_redirect’);

    function logout_redirect(){

    wp_redirect( home_url() );

    exit();
    }

  • Magento Weekness

    magento is huge but still lack of aΒ reliableΒ programmer and better extension. just because ofΒ Β stupid, waste, quick view. customer moves to woocommerce or other platform like bigcommerce.

  • Remove Storefront Sidebar

    add_action( ‘get_header’, ‘remove_storefront_sidebar’ );

    function remove_storefront_sidebar() {
    if ( is_product() ) {
    remove_action( ‘storefront_sidebar’, ‘storefront_get_sidebar’, 10 );
    }
    }

  • it’s easy to find a God …. Looking for #woocommerce #programmer in #Nepal πŸ˜›

    Vacancy – WooCommerce Developer – Contact me – rawi.rai@me.com