• Resolved shaikh441

    (@shaikh441)


    I currently have a site which is selling services, rather than physical products so they have been set to “virtual” in the WooCommerce products section so no shipping is applied to them.

    However, the services are only available in certain areas of London and not nationwide.
    I would like to set-up a restriction where the website does not allow an order to be completed if the billing address is set to an area/post code outside of defined areas in London. I know this can be done with Shipping Zones, but the shipping aspect has been taken out as it is a virtual product.

    Hope that makes sense, I do need to implement something fairly urgently

    Any assistance on this is much appreciated. Thanks!

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Mirko P.

    (@rainfallnixfig)

    Hello @shaikh441 ??

    At the moment, there’s no default option for that in WooCommerce, and customizing that would require a bit of additional coding. Custom coding goes beyond the scope of support we are able to provide in this forum.

    Looking around I found the following link that may interest you:

    https://nicolamustone.blog/2014/12/08/sell-in-specific-states-with-woocommerce/

    You may want to further customize in order to display only specific zip codes or areas in the State drop-down of the billing details on checkout. Note that State can be changed to whatever you like (e.g. Zone, Area) using the Loco Translate plugin.

    If you do require more help with the actual coding, we’d recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    I hope that this helps point you in the right direction.

    Best regards.

    Thread Starter shaikh441

    (@shaikh441)

    Thanks for getting back to me @rainfallnixfig

    Would an easier & quicker solution be to change the product type to a physical product, so shipping options become available, and then restrict shipping to zip codes as that is already supported?

    Also on the back of that, can the shipping text on the checkout page be changed with either custom code or using the above Loco Translate plugin to say something like “Call Out Fee” rather then “Shipping Fee”?

    My thinking behind this is that the customer would enter details into checkout, WooCommerce detects address is not part of allowed shipping zone and instead of bringing up the default message of “No shipping options available”, it would say something like “No Call Out options available”?

    Thanks

    Thread Starter shaikh441

    (@shaikh441)

    Also, is it the LocoTranslate plugin needed to achieve the above or the more advanced plugin PoEdit for custom text?

    Margaret S. woo-hc

    (@margaretwporg)

    Hi @shaikh441

    Would an easier & quicker solution be to change the product type to a physical product, so shipping options become available, and then restrict shipping to zip codes as that is already supported?

    Yes, that is a great idea – easier than keeping the products virtual and missing out on the shipping zone options.

    say something like “Call Out Fee” rather then “Shipping Fee”
    instead of bringing up the default message of “No shipping options available”, it would say something like “No Call Out options available”
    is it the LocoTranslate plugin needed to achieve the above or the more advanced plugin PoEdit for custom text?

    You may use LocoTranslate, but if you’re comfortable with using the more advanced tool PoEdit then that’s great. You’ll find this documentation helpful along the way: https://woocommerce.com/document/woocommerce-localization/#creating-custom-translations-with-loco-translate

    You can also use the ‘Say What?’ plugin for individual string changes: https://www.ads-software.com/plugins/say-what/ .

    I hope this helps!

    Thread Starter shaikh441

    (@shaikh441)

    Thanks for the reply! I will probably go with that, using either of the plugins

    Margaret S. woo-hc

    (@margaretwporg)

    Perfect! That sounds like a plan.

    We’ll be here if you have more questions.

    Margaret S. woo-hc

    (@margaretwporg)

    We haven’t heard back from you in a while, so I’m marking this thread as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Geolocation for virtual products/services’ is closed to new replies.