How to Hide Woocommerce Shipping Options Conditionally (15 Easy Hacks)

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 76

  • @AL_TheGrayWolf
    @AL_TheGrayWolf 2 года назад +4

    Probably the best channel ever found. Love the content.. Best snippets ever!

  • @hahahuhu832
    @hahahuhu832 2 года назад +1

    Such a WordPress professor

  • @pixelgap
    @pixelgap 2 года назад +1

    You rock. Your videos are amazing. Thank you.

  • @doreenaura6405
    @doreenaura6405 2 года назад

    Thank you for sharing. I have a question on shipping classes. I will appreciate your assistance.

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Hi, I received your email, but unfortunately I am unable to help you with it because this is a custom work that needs more work.

  • @HagenPflueger
    @HagenPflueger Месяц назад

    What am I missing? You do paste a code at 2:08. Where did you get it from? You would need to copy that code from somewhere. Where do I copy that code from? Sorry, if that is obvious and I didn't get it, but I would appreciate a hint. Thanks in advance.

    • @wpsimplehacks
      @wpsimplehacks  Месяц назад

      As mentioned in the video, all the code snippets are here wpsimplehacks.com/how-to-hide-woocommerce-shipping-methods-conditionally/

  • @danhew531
    @danhew531 Год назад

    Hi, Thank you for the video! This is great! How did you hide "deliver to a different address on local pick-up? I copied your code and it's still there. Can you please help?

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      Probably you didn’t use the correct local pickup ID in the code.

  • @josedanielserratebasma3371
    @josedanielserratebasma3371 2 года назад

    You are the best, Is it possible to add a buttom at the top of the checkout page to select local pick up? Please i couldnt find any plug in or code to do that, you will help a lot .

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      What do you mean by that?

    • @josedanielserratebasma3371
      @josedanielserratebasma3371 2 года назад

      @@wpsimplehacks My trouble is that on cell phones first you have to complete the checkout fields and then you choose the shipping method, i wan to know if there is a way to first choose the shipping method and then complete the fields

    • @wpsimplehacks
      @wpsimplehacks  2 года назад +1

      See whether this plugin shown in this video will help you out ruclips.net/video/RGXfTKjsUaM/видео.html

    • @josedanielserratebasma3371
      @josedanielserratebasma3371 2 года назад

      @@wpsimplehacks Thank you sir, Please never stop making videos, your videos are the best

  • @moessiebenny546
    @moessiebenny546 2 года назад

    very good information. thank you. is there a possibility for the single product page to change the thumbnails to bullet buttons. I've searched all over but couldn't find anything about this.
    please let me know. Thanks in advance for this nice explanation.

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Do you mean single gallery thumbnails or something else? Why would you need to convert them to buttons.

    • @moessiebenny546
      @moessiebenny546 2 года назад

      it is for the single product gallery thumbnails. (mobile) it is for an air conditioning company with more than 5 extra photos. and that really doesn't look good on mobile version. and I want to make the single product page a bit quieter, but with all the amenities. I hope there is a possibility to do this with blocksy. because I want to use as few plugins as possible for this website. thank you for the effort. Greetings Moessie from the Netherlands

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      It would be wise to open up a support ticket on Blocksy site and ask them about it.

    • @moessiebenny546
      @moessiebenny546 2 года назад

      thank you for your quick response.
      I have created a support ticket and unfortunately there is no
      option to create bullet points for the single gallery
      not even in the pro version.
      Thank you in advance for your effort
      and if there is an opportunity somewhere, I'd love to hear it.
      greetings from the Netherlands
      Moessie

  • @Usama1333
    @Usama1333 Год назад

    Love your videos too much helpful God bless you.. 💕

  • @abazzov7526
    @abazzov7526 2 года назад

    One more question) I struggle on adding credit card payment method. Because i live in Azerbaijan and I don’t know if Stripe support it
    Do you have any advice that what can i do about that?

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      It would be wise to ask this question directly to the Stripe team. Although, here's the Stripe countries list stripe.com/global

  • @joesuarez6322
    @joesuarez6322 2 года назад

    Hi man, could you show how disable shipping method based on choosen payment method??

  • @Whyayk
    @Whyayk 2 года назад

    hi i just want to know if i want to ship free to specific state or pincode and charge money to other states how it can be possible?

    • @wpsimplehacks
      @wpsimplehacks  2 года назад +1

      Woocommerce >> Settings >> Shipping zones. Set up zones with different pricing, and if needed you can set them up by using postal codes. See official docs woocommerce.com/document/setting-up-shipping-zones/

  • @abazzov7526
    @abazzov7526 2 года назад

    Hello
    how can i remove "ship to different address" section for all shipping method?

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Take a look whether this helps you out njengah.com/disable-ship-to-another-address-option/

    • @abazzov7526
      @abazzov7526 2 года назад

      @@wpsimplehacks tahnk u you are the best

  • @mussagirma9975
    @mussagirma9975 2 года назад +1

    The "Remove "ship to a different address" if Local Pickup is selected" code doesn't work

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      I just tested on my site and it works well.

    • @mussagirma9975
      @mussagirma9975 2 года назад

      @@wpsimplehacks Hi, my website is in french do you think that has to do with this code not working ? The other codes seem to work

    • @bestinkgr
      @bestinkgr Год назад

      @@wpsimplehacks It 'halfway' works for me. If the customer changes a shipping method, it doesn't work unless the page is refreshed

  • @bobobebe
    @bobobebe Год назад

    Hi, I wonder if there is a code for
    Show Free shipping and Hide flat rate and its amount when the order is above 15 USD

  • @selah_
    @selah_ Год назад

    The "remove ship to different address if local pickup is selected" snippet worked for me, however, there seems to be a minor flaw.. It does not actually disable the toggle, it only hides the fields. Which means if the toggle was enabled to show the fields while one shipping method was selected, and the customer switches the shipping method to another that was set to hide the fields if selected, then if they try to check out, there would be an error saying that Shipping address, first name etc. is required. Is there any way to disable the toggle completely if local pickup is selected, and not just hide it, so that this issue doesn't occur?

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      Shipping fields aren’t required by default. Only billing fields are. So, maybe you have "Default to shipping address" activated (it’s under Woocommerce >> Settings >> Shipping >> Shipping options)

  • @dustinfinlinson3203
    @dustinfinlinson3203 Год назад

    What if your cart has one items that hides local pickup in favor of flat rate or free shipping and another item the hides the flat rate or free shipping in favor of local pickup?

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      Then no shipping methods are displayed. :)

  • @LarsvanRooijen
    @LarsvanRooijen 2 года назад

    First of all: WP Simple hacks, thanks for all the great help! Your snippets have been great for hiding fields, moving the email addresses to the top of the form, and showing the local pickup address. Unfortunately, I'm running into the same problem as Mussa Girma and cannot get the 'ship to a different address to hide. My site is set up in Dutch. could this be the cause of the problem? Is there any way you could help?

    • @wpsimplehacks
      @wpsimplehacks  2 года назад +1

      What theme you’re using? Maybe it overrides CSS classes used on my snippet. For example: my snippet uses #customer_details .col-2 .woocommerce-shipping-fields ID and classes to hide "Ship to another address".
      Maybe your theme uses somewhat different ID-s or classes. Take a look at it by using your browser inspector and, if needed then change them accordingly.

    • @LarsvanRooijen
      @LarsvanRooijen 2 года назад

      @@wpsimplehacks thanks for the quick response. I'm using Divi (theme). As far as i can see, i see the same classes and ID's. But to be honest, i'm pretty new in this field.

  • @abazzov7526
    @abazzov7526 2 года назад

    Where do you get coxes from ? Im confused

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      As I said in the video: link to the snippets are in the video description 🙂

    • @abazzov7526
      @abazzov7526 2 года назад

      Thank you​@@wpsimplehacks

  • @NiceTryAmigo
    @NiceTryAmigo 9 месяцев назад

    Great snippet. But then in orders it doesn't show what customer picked DPD, Omniva or other delivery service.

  • @sasakikojuro
    @sasakikojuro 2 года назад

    Hello, I hope you are doing good Mister,
    your videos are so helpful so far, I truly like the content you provide.
    I'm currently facing a problem, I want to hide shipping methods by cities, I have only 2 shipping methods which are: stopdesk and home delivery. Home dilevery is available for every city within the state, but stopdesk (local pickup) isn't available in all cities for a given state.
    You know in the same state there is multiple cities, and I want to hide stopdesk on multiple cities within the same state and make the stopdesk (local pickup) option available only for some cities within the state.
    Can you tell me please how can I do it? I'm truly in a huge problem right now, I have been searching for 6 months without finding any solution.
    Thank you.

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Set up two shipping zones. One has hone delivery and another obe has stopdesk. Then add postal codes to either one of them - this will check whether it is allowed to use this or that zone

  • @iamshekhu37
    @iamshekhu37 Год назад

    Hello sir , is there any way to add free shipping based on the payment method??

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      Solution 1: letmegooglethat.com/?q=woocommerce+add+free+shipping+based+on+payment+gateway
      Solution 2: stackoverflow.com/questions/46121480/how-do-i-make-a-specific-payment-gateway-to-be-free-shipping-on-woocommerce
      😇

    • @iamshekhu37
      @iamshekhu37 Год назад

      @@wpsimplehacks thank you sir , I'll try that 😊

  • @Jiggisghoul
    @Jiggisghoul 2 года назад

    Sir thank you really much for your work! You helped us a lot! Your community loves you we are grateful!! Pls show us some good product slider a good one with beautiful design not so trashy? Can you help us there pls

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Sorry, I myself don’t use product sliders and therefore can’t help with that.

  • @Mohammedakhlaq-qr2fy
    @Mohammedakhlaq-qr2fy Год назад

    How do you offer the customer an option for no shipping required. this is if a customer wants to sort out their own shipping method

    • @wpsimplehacks
      @wpsimplehacks  Год назад

      Set your products as virtual products. These won't need shipping

    • @Mohammedakhlaq-qr2fy
      @Mohammedakhlaq-qr2fy Год назад

      @@wpsimplehacks understood but what of customers want to arrange their own shipping? so i wanted to offer an option (checkbox) on checkout asking if you want shipping or not

  • @Whyayk
    @Whyayk 2 года назад

    i love you man

  • @banatcollections527
    @banatcollections527 Год назад

    how to remove shipping address down of delivery charge in cart page

  • @advanced-developers
    @advanced-developers 2 года назад

    good video

  • @chiragjain718
    @chiragjain718 2 года назад

    Sir, i see your video and subscribe your channel. Please make a video on how can add options of gallery image for woocommerce variation product. And can we add wp_editor in it ( full featured).

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      What do you mean by that? Do you mean variation gallery or anything else?

  • @abazzov7526
    @abazzov7526 2 года назад

    Codes*

  • @chiragjain718
    @chiragjain718 2 года назад

    Please sir its a request

  • @xavimf4315
    @xavimf4315 2 года назад

    Can you help me with a code snippet?
    it's for bookable products.
    In the "single page" of a ALL VARIABLE BOOKABLE PRODUCTS, I want to hide the option to add the quantity, I only want to be able to add (book) "one product per variable"
    I've tried something like this and it works, but it affects all products, I need to afect ONLY VARIABLE BOOKABLE PRODUCTS.
    /** @Hide quantity using CSS */
    function hide_quantity_using_css() {
    if ( is_product() ) {
    ?>
    .quantity, .buttons_added { width:0; height:0; display: none; visibility: hidden; }

    • @wpsimplehacks
      @wpsimplehacks  2 года назад

      Sorry, can’t help with that. It would be wise to ask support from the booking plugin support team.