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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

ความคิดเห็น • 74

  • @AL_TheGrayWolf
    @AL_TheGrayWolf 2 ปีที่แล้ว +4

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

    • @wpsimplehacks
      @wpsimplehacks  2 ปีที่แล้ว +1

      Thank you for the support 🙂

  • @hahahuhu832
    @hahahuhu832 2 ปีที่แล้ว +1

    Such a WordPress professor

  • @pixelgap
    @pixelgap 2 ปีที่แล้ว +1

    You rock. Your videos are amazing. Thank you.

  • @Usama1333
    @Usama1333 ปีที่แล้ว

    Love your videos too much helpful God bless 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.

  • @Whyayk
    @Whyayk 2 ปีที่แล้ว

    i love you man

  • @NiceTryAmigo
    @NiceTryAmigo 6 หลายเดือนก่อน

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

    • @wpsimplehacks
      @wpsimplehacks  6 หลายเดือนก่อน

      What do you mean by that?

  • @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

  • @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.

  • @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. :)

  • @banatcollections527
    @banatcollections527 10 หลายเดือนก่อน

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

    • @wpsimplehacks
      @wpsimplehacks  10 หลายเดือนก่อน

      Woocommerce settings >> Shipping

  • @joesuarez6322
    @joesuarez6322 2 ปีที่แล้ว

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

    • @wpsimplehacks
      @wpsimplehacks  2 ปีที่แล้ว

      Sorry, can’t help with that.

  • @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

    • @wpsimplehacks
      @wpsimplehacks  ปีที่แล้ว

      Sorry, can’t help you with that.

  • @advanced-developers
    @advanced-developers 2 ปีที่แล้ว

    good video

  • @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

  • @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

  • @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

  • @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 th-cam.com/video/RGXfTKjsUaM/w-d-xo.html

    • @josedanielserratebasma3371
      @josedanielserratebasma3371 2 ปีที่แล้ว

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

  • @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/

  • @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

  • @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

  • @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

  • @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 😊

  • @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)

  • @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.

  • @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.