• Resolved Paolo

    (@paoloicreatif)


    Hello, i have a problem with local pickup: in woocommerce settings i set flat rate free over 50€ cart and i had also the possibility to choose local pickup. After some time i saw that local pickup disappear when the cart is over 50€. I check settings but everything is ok. I see also that in plugin page the button “deactivate” below Woocommerce plugin isn’t clickable. What do you think about this problem? Could you help me to solve this bug? Thanks a lot, Paolo

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @paoloicreatif

    i have a problem with local pickup: in woocommerce settings i set flat rate free over 50€ cart and i had also the possibility to choose local pickup. After some time i saw that local pickup disappear when the cart is over 50€.

    This is indeed unusual and a possible conflict between the flat rate free shipping over 50€ and the local pickup option. However, to pinpoint the exact problem, we would need to do a bit more troubleshooting.

    Can you check if there are any custom codes or settings from another plugin that might hide all other shipping methods when Free shipping is available?

    I see also that in plugin page the button “deactivate” below Woocommerce plugin isn’t clickable. What do you think about this problem?

    It could be due to user permissions. Please ensure you’re logged in as an administrator on your WordPress site.

    I suggest you temporarily deactivate all other plugins except WooCommerce and switch to a default WordPress theme like Storefront or Twenty Twenty-Four. This will help us rule out any conflicts with other plugins or themes. More info: https://woocommerce.com/document/how-to-test-for-conflicts/

    If the issue persists, please can you share a copy of the following:

    • System Status Report: Navigate to WooCommerce → Status. Select Get System Report and then Download for Support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    You could copy and paste your reply or share it via Mozilla Community Pastebin and share the link here. This will help us investigate further and provide you with a more accurate solution.

    I hope that helps! Let me know once you have done a conflict test!

    Thread Starter Paolo

    (@paoloicreatif)

    Hi Shameem and thanks for your answer! I found the problem deactivating a plugin that allows this 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’, 100 );

    How can i solve this problem?

    I would like to have free shipping for order > 50€ but also the possibility to local pickup.

    Now i deactivate the snippet but for example if i order something about 30€ in checkout i see:

    • flat rate 10€
    • free shipping
    • pickup local

    Obviously you can understand that a customer mustn’t has the possibility to choose free shipping, instead he must choose between flat rate or local pickup.

    Thanks a lot, Paolo

    Hey, @paoloicreatif!

    Do you mind clarifying this for us?
    You mentioned you found the issue was the custom code. But then you mentioned that even without it the issue persists, or did I understand it wrong?

    Can you please share some screenshots to help us investigate this further? I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.

    We need screenshots of:

    • WooCommerce > Settings > Shipping
    • WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone
    • WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone > Click on edit on each shipping method so we can check the specific settings
    • The cart/checkout page with the issue

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter Paolo

    (@paoloicreatif)

    Hello @carolm29 and thanks for answer!

    Sorry i wrote something wrong (i had another problem but about caching that i solved): about shipping i would like to have:

    • flat rate 10€
    • free shipping over 50€
    • local pickup

    Now on my website:

    • if in cart there is something not over 50€ the customer see flat rate or local pickup
    • if in cart there is something over 50€ the customer see only free shipping

    Is it possible to see also local pickup in last case?

    I tried to use Snipboard but it upload just 1 image

    Thanks, Paolo

    Hey, @paoloicreatif!

    Thanks for clarifying!

    if in cart there is something over 50€ the customer see only free shipping

    This is happening because of the code you added to hide other shipping methods if free shipping is available.

    Please take a look at this guide which has a code that will show free shipping and local pick up and hide flat rate. You can remove the old cold and add this one.
    If you want to always show all options you can just remove the code.

    Please note that as per our support policy, we are not able to help further with code customization.

    If you need further help with it, you can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    I hope this was clarifying. Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    Thread Starter Paolo

    (@paoloicreatif)

    Hello @carolm29 and thanks for your reply. I solved the problem. Thanks a lot!

    • This reply was modified 6 months ago by Paolo.
    Plugin Support Shameem R. a11n

    (@shameemreza)

    HI @paoloicreatif

    That’s great to hear! Thanks for letting us know.

    Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Local pickup disappear when total cart is over 50€’ is closed to new replies.