• By far one of the best free plugins for a woocommerce based site. And customer service is top notch, you could not ask for anything better.

    This plugin will keep you from having to do a lot of custom coding. It takes a little bit to get used to but well worth it in the end..

    The only custom code I had to put in my functions was this little snippet to hide shipping fees when a certain amount was reached and I was back up and running.

    THIS PLUGIN IS A TOTAL MUST HAVE

    <?php
    /**
    * This is where you can copy and paste your functions !
    */
    add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 );
    
    function hide_shipping_when_free_is_available( $rates, $package ) {
    
     	// Only modify rates if free_shipping is present
      	if ( isset( $rates['free_shipping'] ) ) {
    
      		// To unset a single rate/method, do the following. This example unsets flat_rate shipping
      		unset( $rates['flat_rate'] );
    
      		// To unset all methods except for free_shipping, do the following
      		$free_shipping          = $rates['free_shipping'];
      		$rates                  = array();
      		$rates['free_shipping'] = $free_shipping;
    	}
    
    	return $rates;
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘OUTSTANDING’ is closed to new replies.