• Resolved TimEv

    (@fantazer007)


    I use free shipping for only one postcode. I have added this region to the Shipping Zones.
    I don’t understand why the buyer can enter any postcode and see the message – “No shipping options were found for….”, but click on the Proceed to checkout button and place an order.

    How can I make it so that if the buyer enters a postcode for which I do not make a delivery, then Proceed to checkout button disappears. And the buyer cannot go to the page and place an order.

    Not all buyers carefully read the message (No shipping options were found for….) that says that delivery is not possible.

    https://prnt.sc/26i172q

    • This topic was modified 3 years, 1 month ago by TimEv.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Sérgio L. a11n

    (@csnlima)

    Hi @fantazer007!

    To better understand your setup, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.

    Best,

    Thread Starter TimEv

    (@fantazer007)

    Hello. Thanks for the quick response

    ### WordPress Environment ###

    WordPress address (URL): https://staging.chef-roots.com
    Site address (URL): https://staging.chef-roots.com
    WC Version: 6.1.1
    REST API Version: ? 6.1.1
    WC Blocks Version: ? 6.5.2
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.0.3
    Log Directory Writable: ?
    WP Version: 5.8.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.4.27
    PHP Post Max Size: 900 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 21000
    cURL Version: 7.79.1
    OpenSSL/1.1.1g-fips

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.18-MariaDB-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 6.1.1
    WC Database Prefix: wp_
    Total Database Size: 61.78MB
    Database Data Size: 53.92MB
    Database Index Size: 7.86MB
    wp_woocommerce_sessions: Data: 0.33MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.78MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_captcha_bank: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_captcha_bank_ip_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_captcha_bank_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cf7_vdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cf7_vdata_entry: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_cfom: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.17MB + Index: 0.16MB + Engine InnoDB
    wp_fusion_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_fusion_form_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_fusion_form_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_fusion_form_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 6.45MB + Index: 0.14MB + Engine InnoDB
    wp_pmpro_membership_levelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_postmeta: Data: 3.52MB + Index: 4.03MB + Engine InnoDB
    wp_posts: Data: 32.52MB + Index: 0.38MB + Engine InnoDB
    wp_revslider_css: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides: Data: 0.36MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_sm_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_um_metadata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_usermeta: Data: 0.52MB + Index: 0.48MB + Engine InnoDB
    wp_users: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpml_mails: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_bounceVisits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_browsers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_countries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wsm_dailyHourlyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_dateWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_dateWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_dateWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_dateWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_dateWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_datewise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_hourWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_hourWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_hourWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_hourWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_hourWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_logUniqueVisit: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wsm_logVisit: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wsm_monthlyDailyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_monthWiseBounce: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_monthWiseBounceRate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_monthWiseFirstVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_monthWisePageViews: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_monthWiseVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_monthwise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_oSystems: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_pageViews: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_regions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_resolutions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_searchEngines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_toolBars: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_uniqueVisitors: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_url_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wsm_visitorInfo: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wsm_yearlyMonthlyReport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsm_yearwise_report: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    attachment: 270
    condition_group: 1
    custom_css: 1
    fusion_element: 7
    nav_menu_item: 6
    page: 29
    popup: 2
    popup_theme: 8
    post: 18
    product: 55
    product_variation: 4
    restriction: 1
    revision: 893
    shop_coupon: 19
    shop_order: 332
    slide: 7
    tribe_events: 7
    tribe_organizer: 1
    tribe_venue: 1
    um_directory: 1
    um_form: 3
    wcccf: 3
    wccpf: 15
    wpcf7_contact_form: 2

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (17) ###

    Advanced CF7 DB: by Vsourz Digital – 1.8.5
    Code Snippets: by Code Snippets Pro – 2.14.3
    Contact Form 7: by Takayuki Miyoshi – 5.5.4
    Duplicate Page: by mndpsingh287 – 4.4.7
    Enable Media Replace: by ShortPixel – 3.6.3
    Avada Builder: by ThemeFusion – 3.6.1
    Avada Core: by ThemeFusion – 5.6.1
    Kadence WooCommerce Email Designer: by Kadence WP – 1.4.10
    Show-Hide/Collapse-Expand: by Bunte Giraffe – 1.2.5
    Sucuri Security – Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.30
    WC Fields Factory: by Saravana Kumar K – 3.0.4
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.5.3
    Checkout Fields Manager for WooCommerce: by QuadLayers – 5.5.3
    WooCommerce Stripe Gateway: by WooCommerce – 6.0.0
    WooCommerce: by Automattic – 6.1.1
    WP Mail Logging: by Wysija – 1.10.2
    ReCaptcha v2 for Contact Form 7: by IQComputing – 1.3.7

    ### Inactive Plugins (0) ###

    ### Must Use Plugins (1) ###

    StackCache: by Stack CP –

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: –

    ### WC Pages ###

    Shop base: #2344 – /shop/
    Basket: #2345 – /basket/
    Checkout: #2346 – /checkout/
    My account: #2347 – /my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: Avada
    Version: 7.6.1
    Author URL: https://themeforest.net/user/ThemeFusion
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme

    WooCommerce Support: ? Not declared

    ### Templates ###

    Overrides: Avada/woocommerce/cart/cart.php
    Avada/woocommerce/checkout/form-pay.php
    Avada/woocommerce/checkout/review-order.php
    Avada/woocommerce/checkout/thankyou.php
    Avada/woocommerce/loop/loop-start.php
    Avada/woocommerce/single-product/add-to-cart/variable.php
    Avada/woocommerce/single-product/short-description.php
    Avada/woocommerce/single-product/tabs/additional-information.php
    Avada/woocommerce/single-product/tabs/description.php

    ### Action Scheduler ###

    Complete: 37
    Oldest: 2022-01-03 10:29:14 +0000
    Newest: 2022-01-23 09:02:12 +0000

    ### Status report information ###

    Generated at: 2022-01-23 14:11:52 +00:00
    `

    @fantazer007

    This kind of problem is usually caused by a conflict with your theme or with another plugin. 
    ?
    The best way to determine this is to:
    <ul>
    <li>Temporarily switch your theme to <a href="https://www.woocommerce.com/storefront/" target="_blank">Storefront</a></li>
    <li>Disable all plugins except for WooCommerce</li>
    <li>Repeat the action that is causing the problem</li>
    </ul>
    
    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. <a href="https://docs.woocommerce.com/document/how-to-test-for-conflicts/">You can find a more detailed explanation on how to do a conflict test here.</a>
    Thread Starter TimEv

    (@fantazer007)

    https://prnt.sc/26ifsba

    Thank you. I did everything you said.

    I disabled all plugins except for WooCommerce and installed the Storefront theme.

    I see Proceed to checkout button if delivery is not possible. How can I remove this button? Can you update the plugin code so that it is logical and works correctly?

    Why does a customer need to go to the next page if delivery is not possible?`

    Hi there,

    There is an alternative solution via custom code in this guide to prevent access to checkout if there is no shipping option.

    It is highly recommended to use a plugin like Code Snippets to add custom PHP code into your site without directly accessing the functions.php file. Here is an article that explains how to use the Code Snippets plugin:

    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

    I hope this leads you in the right direction.

    • This reply was modified 3 years, 1 month ago by Igor H.
    Thread Starter TimEv

    (@fantazer007)

    Thanks, I added this code using the Code Snippets plugin.
    That’s what I see

    https://prnt.sc/26ij80d

    The Proceed to checkout button is still in place.
    I repeat my question: how do I remove the Proceed to checkout button if there is no delivery for this address?

    Please any solution for this.

    I do not want to receive the Proceed to checkout button if there is no possibility of delivery to this region. This is logical.

    Mirko P.

    (@rainfallnixfig)

    Hey @fantazer007,

    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.

    I tested this code and it worked on my default install of WordPress, WooCommerce and the free Storefront theme:

    https://www.bolderelements.net/support/knowledgebase/removing-checkout-button-shipping-not-available/

    If that doesn’t work for you or 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/.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove Proceed to checkout button if there are no delivery methods (No shipping’ is closed to new replies.