• Resolved apositivetwist

    (@apositivetwist)


    Hi, in WOOCommerce Settings -> Shipments, I have set up two shipping options for my home country, Germany: a free shipping option for purchase orders above €100, and below €100 a fee of €6 should apply. Unfortunately, on the check-out page of the Webstore both options were displayed for the customer to choose from! I got over that hurdle with installing the plugin ‘WC-Hide-Shipping-Methods’. Now, only the ‘free shipping’ option is displayed, irregardless of the order value. Neither is desirable, obviously. I followed all the other advice: Clearing the cache, updating plugins, disabling/enabling plugins, etc. but none of it fixed the malfunction. What am I doing wrong and how can I fix it. I need to add that I am no developer and/or programmer, just your average, elderly user, and hence I haven’t added snippets or messed with codes…

    Many thanks!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter apositivetwist

    (@apositivetwist)

    Many thanks, my friend. However, as I said, I have never messed with the code and added snippets. Where to begin?

    Apart from that, should the shipment set-up not simply work. I mean its been offered. One would expect that it works…

    Anyway, if you could help me with the above?

    It’s always worked like that – I’ve answered this same question from people on here for years! For some reason Woo just won’t add it as an option in the shipping settings!

    The easiest way to add the code is to use: https://wordpress.org/plugins/code-snippets/

    Hi @apositivetwist ,

    By default, WooCommerce displays all available shipping rates if the items in the cart qualify for multiple options, such as free shipping and flat rate. This is why both rates are showing at checkout if the cart meets the conditions for free shipping.

    However, @seank123 has provided a great suggestion to resolve this issue. Adding the recommended code snippet to your site will automatically hide the flat-rate option when free shipping is available. If you’re comfortable with editing your site’s code, you can add this snippet to your child theme’s functions.php file.

    Alternatively, if you prefer a safer method, you can use a plugin like Code Snippets to add the code without directly editing your files.

    Please check and let us know if this helps you.

    Thread Starter apositivetwist

    (@apositivetwist)

    Many thanks for the support! I have now added a code-snippet via the code snippets plugin and it works just the same as the ‘WC-Hide-Shipping-Methods’: It hides the ‘Shipping Fee’ option completely and displays the ‘Free Shipment’ option only – irregardless of the order value. Unfortunately, that’s not the desirable outcome either.

    Is there no way to make the system to show:

    a) a shipping fee of €x for orders below a total value of €100, or

    b) information ‘shipping is free’ when an order is placed with a total of over €100?

    (If the above described outcome is the only one which can be achieved, I could get the same by simply eliminating the ‘shipping fee’ option in the WOO Commerce freight settings altogether. No plugin and no snippet required for a result not desired…)

    Zee

    (@doublezed2)

    Hello apositivetwist,

    Thank you for your reply.

    Could you clarify this please?

    It hides the ‘Shipping Fee’ option completely and displays the ‘Free Shipment’ option only – irregardless of the order value.

    The code snippet under “How do I only show Free Shipping” should show the Free Shipping option when the customer’s cart qualifies for free shipping. In your case, when the total is over €100.

    Could you share a screenshot of the shipping settings where you have set up Free Shipping?
    Once I have more information, I will be in a better position to assist you further.

    Looking forward to your response. 🙂

    Best regards.

    Thread Starter apositivetwist

    (@apositivetwist)

    Hello Zubair,

    Many thanks for picking it up! Attached are screenshots from the shipment set-up in WOO commerce, the Code Snippet inserted, and from a sample order below the threshold of €100. Sorry that it is in German but I guess it looks pretty similar to the English set-up…

    Best Regards, Eckehard

    Hi @apositivetwist ,

    Thanks for reaching out. It seems the attached screenshot isn’t displaying properly or wasn’t linked correctly. Since reviewing these visuals is essential for checking the settings, could you please try sharing them again?

    If you don’t already have a screenshot tool installed, you can use Snipboard.io to easily capture and share screenshots.

    Feel free to update us once you’ve done that, and we’ll take a closer look!

    Thread Starter apositivetwist

    (@apositivetwist)

    Hi there, sorry that you couldn’t see the screenshots. I try again, hope it works this time:

    Hi @apositivetwist

    Sorry, we couldn’t see the screenshot. Could you try uploading it to Snipboard.io as my colleague suggested and share the link here for better results? Also, if it’s in German, if possible, kindly translate the page to English temporarily before taking the screenshot.

    Looking forward to helping you get this sorted out.

    Thread Starter apositivetwist

    (@apositivetwist)

    Ok, I have uploaded the screenshots to dropbox. I hope this works. Here is the link:

    https://www.dropbox.com/scl/fo/wm6onu8pnh8sq6ov9rguf/ADngTvXER3JTjloFOorbtZs?rlkey=h7ib6c9dafdpca7yl46egaqqv&st=f2860v1j&dl=0

    Zee

    (@doublezed2)

    Hello apositivetwist,

    Thank you for your reply.

    I reviewed the screenshots you shared and noticed the “Break” and “Return” keywords.
    Please note that PHP is a case-sensitive language and I recommend using “break” and “return” instead.

    Could you make this change and check if that resolves the issue?

    Best regards.

    Thread Starter apositivetwist

    (@apositivetwist)

    Hi there,

    I have made the changes as suggested by Zubair (thanks!) and it had an effect, although quite a curious one: Whereas beforehand the shipment cost line wasn’t shown at all in the bill at check-out, it now clearly states “Free delivery” although the order value is well below set threshold of €100. What it should actually show, is “€6.00 Shipment Charge” or similar.

    The following link is to a screenshot of the check-out page. So, unfortunately the issue has not been resolved.

    https://www.dropbox.com/scl/fi/bdnhv1dxajn2n6ofw2wxk/20241128_Website-display-shipment-AFTER-adjusting-the-snippet.jpg?rlkey=1e2m82ww11tsrowmbcn6dd2ej&st=7nzvkhjs&dl=0

    Zee

    (@doublezed2)

    Hello apositivetwist,

    Thank you for your reply.

    I am glad to know that you are making a progress.

    Next, could you try putting just “100” in the “Minimum order value” for Free Shipping?
    I think “100,00” is not being read correctly making the value ten thousand (10000).

    Let me know how it goes. 🙂

    Thread Starter apositivetwist

    (@apositivetwist)

    Zubair, you’re just the hero 🙂 !!! This finally has made it work. When I changed the value to “100” as you suggested, the system automatically corrected it back to “100,00” as it is correctly done in Germany. But the simple fact of me re-entering it must have shaken the WOO commerce code in its core. It woke up!

    Thanks once more!

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Error with Free Shipping Set-Up’ is closed to new replies.