WooCommerce Tutorials

June 20, 2019

Integrate custom WooCommerce templates to your theme

1) Add this to your functions.php file:

add_theme_support('woocommerce');

2) create a woocommerce folder in your theme’s folder (wp-content/themes/[YOUR THEME]/woocommerce/) and add your files there. You can base the files from the WooCommerce plugin templates, located in wp-content/plugins/w00c0mmerce/templates/.

Remove the Add to Cart button on the Archives/Category page

Add this to your functions.php file:

remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');

Remove “Showing All XX Results”

Add this to your functions.php file:

remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );

Remove Sorting Option

Add this to your functions.php file:

remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering',30 );

Remove Related Products

Add this to your functions.php file:

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

Remove SKU on Product Page

function sv_remove_product_page_skus( $enabled ) {
     if ( ! is_admin() && is_product() ) {
         return false;
     }
     return $enabled;
 }
 add_filter( 'wc_product_sku_enabled', 'sv_remove_product_page_skus' );

Remove the Additional Info Tab

add_filter( 'woocommerce_product_tabs', 'remove_info_tab', 98);
 function remove_info_tab($tabs) {
  unset($tabs['additional_information']);
  return $tabs;
 }

Fastest way to add Newest Products, Best Selling Products, Products by Category, On Sale Products and Top Rated Products on the front page?

Gutenberg

Gutenberg!

Takes only a few minutes to add these, no need to code or integrate!

Get In Touch

Email: [email protected]


CAPTCHA image

This helps us prevent spam, thank you.



Categories