Skip to main content

Posts

Showing posts from January, 2018

How to remove breadcrumb from woocommerce theme that uses storefront?

Solution: To remove breadcrumb and sidebar from your woocommerce child theme that uses storefront theme,  write the following code in functions.php. add_action (' after_setup_theme ',' removing_bredcrumb_sidebar '); function removing_bredcrumb_sidebar () { remove_action('storefront_content_top','woocommerce_breadcrumb',10);         remove_action( 'storefront_sidebar','storefront_get_sidebar',10 ); }

How to auto update woocommerce cart when quantity is changed?

Solution:  It is very easy to update your woocommerce cart page automatically when quantity is changed. To do this open your functions.php file and write down the following code. add_action ( ' woocommerce_after_cart ', ' mycart_auto_update ' ); function  mycart_auto_update () {     echo '<script>     jQuery(document).ready(function($)     {           $(".woocommerce-cart-form").find(".qty").on("change", function()               {                     upd_cart_btn.trigger("click");              });     });     </script>';  }