Home Forums WoodMart support forum Free shipping

Free shipping

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #440600

    Artim
    Participant

    Hello,
    Could you please help me? Why doesn’t free shipping work above the set amount of 150 Euros?

    * Theme settings > … > Goal amount = 150 (Calculation = Custom)
    * Shipping zones > Free shipping > “A minimum order amount” = 150

    Attachments:
    You must be logged in to view attached files.
    #440607

    Hello,

    Thank you very much for choosing our theme and for contacting us.

    WoodMart theme allows showing the free shipping bar. And I see it on the screen of the shipping cart. At the same time, the shipping methods are configured in Woocommerce and WoodMart theme does not influence them.

    Please check the settings in the Theme Settings > Shop > Free shipping bar.

    As for the free shipping please test the method on the Storefront.

    Best Regards

    #440781

    Artim
    Participant

    Hi,
    thanks for the quick response. It’s almost okay now but why does it show BOTH shipping methods? (Free by DHL and DHL under 150 Euro) What needs to be changed to show only the free option in this case?
    Thank you in advance for your help.

    Attachments:
    You must be logged in to view attached files.
    #440959

    Hello,

    This functionality shows the amount required to get free shipping, at the same time you need to configure the free shipping rules in Woocommerce and when a buyer gets the total amount equal to that one assuming free shipping, this shipping method should be in force.

    If you have any questions please feel free to contact us.

    Best Regards

    #441056

    Artim
    Participant

    Hi, this is set even now as you write, but it still works this way. Could you write specifically why it is not good? What settings should I modify specifically? Thanks.

    Attachments:
    You must be logged in to view attached files.
    #441067

    Artim
    Participant

    I found the solution in the meantime, so the question can be closed. If anyone else is looking for a solution to this, here is how to solve it.

    Hide other shipping methods when “Free Shipping” is available
    https://woocommerce.com/document/hide-other-shipping-methods-when-free-shipping-is-available/

    STEP 1: Go to WooCommerce > System Status > Tools > WooCommerce Transients > Clear transients

    STEP 2: Woodmart Child: Theme Functions (functions.php)

    Adding PHP code:

    /**
    * Hide shipping rates when free shipping is available.
    * Updated to support WooCommerce 2.6 Shipping Zones.
    *
    * @param array $rates Array of rates found for the package.
    * @return array
    */
    function my_hide_shipping_when_free_is_available( $rates ) {
    $free = array();
    foreach ( $rates as $rate_id => $rate ) {
    if ( 'free_shipping' === $rate->method_id ) {
    $free[ $rate_id ] = $rate;
    break;
    }
    }
    return ! empty( $free ) ? $free : $rates;
    }
    add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', <strong>100</strong> );

    —————
    * “100” in the end == from where delivery is free, eg: 100 euro etc.

    #441069

    Artim
    Participant

    without the <strong> tag, of course…

    /**
     * Hide shipping rates when free shipping is available.
     * Updated to support WooCommerce 2.6 Shipping Zones.
     *
     * @param array $rates Array of rates found for the package.
     * @return array
     */
    function my_hide_shipping_when_free_is_available( $rates ) {
    	$free = array();
    	foreach ( $rates as $rate_id => $rate ) {
    		if ( 'free_shipping' === $rate->method_id ) {
    			$free[ $rate_id ] = $rate;
    			break;
    		}
    	}
    	return ! empty( $free ) ? $free : $rates;
    }
    add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100 );
    #441086

    Artim
    Participant

    Note: It doesn’t work as you specified here, it would be worth updating this page:

    The free shipping progress bar
    https://xtemos.com/docs-topic/free-shipping-progress-bar/
    ( >>> Was this article helpful? 4 – 16)

    #441538

    Hello,

    Our developers would consider this feature in the future.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 9 posts - 1 through 9 (of 9 total)