woocommerce basket

5 of my favourite Woocommerce code snippets

Woo commerce is proving to be  a fantastic  tool  for my  business and projects that I’ve been working on so I thought I would share  some of my favourite  woocommerce code Snippets that I have been using  the se  come from various sources round the internet such as
Woothemes repositorywww.wpexplorer.com and wordimpress.com these Snippets  have  helped me out not end in some of my current projects such as www.godfatherpizzawoodoven.co.uk the customer  had a lot  of custom requirments for their site  such as adding a fee to the cart

* WooCommerce Extra Feature
* ————————–
* Add custom fee to cart automatically

function woo_add_cart_fee() {
global $woocommerce;
if ( is_cart() ) {
$woocommerce->cart->add_fee( __(‘Custom’, ‘woocommerce’), 5 );
add_action( ‘woocommerce_before_cart_table’, ‘woo_add_cart_fee’ );

No comments yet.

Leave a Reply