• Resolved Aaron

    (@akeith2002)


    We have a country dropdown widget that defaults to “US” but many people don’t take the time to set their country and just hit ok to see the pricing. Is there a way to add a default option to the country dropdown list like “Select A Country” where the form won’t submit unless someone changes the dropdown to an actual country?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    The country selector always displays the current customer’s country as the selected country. So, it is not necessary to add a placeholder option.

    In any case, you can make a custom template for the country selector in your theme:
    https://www.pricebasedcountry.com/docs/developer-docs/create-custom-country-currency-switcher-template/

    Thread Starter Aaron

    (@akeith2002)

    I appreciate the quick response! The geolocation does seem to be working (or it seems to always default to the US). When I use a VPN from a different country it pings back US. When we have our colleague who is currently in Ireland test it, it pings back US. What could be causing this?

    Thread Starter Aaron

    (@akeith2002)

    Our test site is here if you want to take a gander: https://shop-metalbellows-com.metalbellowstg.wpengine.com/

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    Can you please send us a copy of your System Status Report? You can find it via WooCommerce > Status > Get system report > Copy for support. You can copy and paste your reply here.
    Thank you.

    Thread Starter Aaron

    (@akeith2002)

    ` WordPress Environment

    WordPress address (URL): https://shop-metalbellows-com.metalbellowstg.wpengine.com
    Site address (URL): https://shop-metalbellows-com.metalbellowstg.wpengine.com
    WC Version: 4.9.5
    REST API Version: ? 4.9.5
    WC Blocks Version: ? 4.0.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.8.4
    Log Directory Writable: ?
    WP Version: ? 6.4.3 – There is a newer version of WordPress available (6.5.2)
    WP Multisite: ?
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: – Server Environment

    Server Info: Apache
    PHP Version: 7.4.33.4
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 10000
    cURL Version: 7.81.0
    OpenSSL/3.0.2

    SUHOSIN Installed: –
    MySQL Version: 8.0.35-27
    Max Upload Size: 16 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ? Database

    WC Database Version: 4.9.3
    WC Database Prefix: wp_2_
    Total Database Size: 13.85MB
    Database Data Size: 8.89MB
    Database Index Size: 4.96MB
    wp_2_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_2_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_2_woocommerce_order_itemmeta: Data: 0.30MB + Index: 0.23MB + Engine InnoDB
    wp_2_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_2_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_2_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wp_2_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_gf_entry: Data: 0.22MB + Index: 0.03MB + Engine InnoDB
    wp_2_gf_entry_meta: Data: 0.23MB + Index: 0.30MB + Engine InnoDB
    wp_2_gf_entry_notes: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    wp_2_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_gf_form_view: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    wp_2_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_options: Data: 1.19MB + Index: 0.08MB + Engine InnoDB
    wp_2_postmeta: Data: 2.52MB + Index: 1.88MB + Engine InnoDB
    wp_2_posts: Data: 0.19MB + Index: 0.09MB + Engine InnoDB
    wp_2_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_2_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_2_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_2_relevanssi: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_2_relevanssi_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_rg_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_rg_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_rg_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_rg_incomplete_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_rg_lead: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_rg_lead_detail: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_2_rg_lead_detail_long: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_rg_lead_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_2_rg_lead_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_2_wc_admin_notes: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wp_2_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    wp_2_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_2_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    wp_2_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_2_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_yoast_indexable: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
    wp_2_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_2_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_2_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_2_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_blogmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_blogs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_registration_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_site: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_sitemeta: Data: 2.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.19MB + Index: 0.06MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB Post Type Counts

    acf-field: 15
    acf-field-group: 2
    attachment: 67
    global_product_addon: 1
    page: 6
    post: 1
    product: 22
    product_variation: 141
    shop_order: 186 Security

    Secure connection (HTTPS): ?
    Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ? Active Plugins (24)

    Gravity Forms: by Gravity Forms – 2.7.17
    Admin Menu Editor: by Janis Elsts – 1.9.8
    Advanced Custom Fields PRO: by Elliot Condon – 5.9.4
    AJAX Thumbnail Rebuild: by junkcoder
    ristoniinemets – 1.13

    Akismet Anti-Spam: by Automattic – 5.0.1
    Bulk Page Creator: by Dagan Lev – 1.1.1
    Classic Editor: by WordPress Contributors – 1.6
    Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.0.2
    Gravity Forms Akismet Add-On: by Gravity Forms – 1.0
    Intuitive Custom Post Order: by hijiri – 3.1.2.1
    Redirection: by John Godley – 5.0
    Relevanssi: by Mikko Saari – 4.10.2
    Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0
    Velvet Blues Update URLs: by VelvetBlues.com – 3.2.10
    Visual Visitor: by Visual Visitor
    LLC – 1.6

    Preview E-mails for WooCommerce: by Digamber Pradhan – 1.6.6
    WooCommerce Checkout Field Editor: by WooCommerce – 1.5.17
    WooCommerce Dynamic Pricing: by Lucas Stark – 3.1.13
    WooCommerce Product Add-ons: by WooCommerce – 3.0.38
    WooCommerce Price Based on Country (Basic): by Oscar Gare – 2.0.13
    WooCommerce: by Automattic – 4.9.5 (update to version 8.7.0 is available)
    Yoast SEO: by Team Yoast – 15.6.2
    Classic Editor: by WordPress Contributors – 1.6
    Advanced Custom Fields: Gravity Forms Add-on: by Say Hello GmbH – 1.3.5 Inactive Plugins (4)

    ACF Content Analysis for Yoast SEO: by Thomas Kr?ftner
    ViktorFroberg
    marol87
    pekz0r
    angrycreative
    Team Yoast – 3.0.1

    Advanced Custom Fields: SVG Icon: by Xavier Zalawa – 1.0.1
    Gravity Forms: WooCommerce Cart Capture: by Lucas Stark –
    Gravity Forms HubSpot Add-On: by Gravity Forms – 1.9 Dropin Plugins (1)

    advanced-cache.php: advanced-cache.php Must Use Plugins (5)

    Force Strong Passwords – WPE Edition: by Jason Cosper – 1.8.0
    WP Engine Cache Plugin: by WP Engine – 1.3.0
    WP Engine Seamless Login Plugin: by WP Engine – 1.6.1
    WP Engine Security Auditor: by wpengine – 1.1.1
    WP Engine System: by WP Engine – 5.0.1 Settings

    API Enabled: –
    Force SSL: ?
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    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: #5 – /shop/
    Cart: #6 – /cart/
    Checkout: #7 – /checkout/
    My account: #8 – /my-account/
    Terms and conditions: ? Page not set Theme

    Name: Metal Bellows Shop
    Version: 1.0.0
    Author URL: https://www.jumpingjackrabbit.com/
    Child Theme: ?
    Parent Theme Name: A WordPress site by Jackrabbit Design
    Parent Theme Version: 1
    Parent Theme Author URL: https://jumpingjackrabbit.com
    WooCommerce Support: ? Templates

    Overrides: metalbellows-shop/woocommerce/cart/cart-empty.php
    metalbellows-shop/woocommerce/cart/cart-totals.php
    metalbellows-shop/woocommerce/cart/cart.php version 3.5.0 is out of date. The core version is 3.8.0
    metalbellows-shop/woocommerce/cart/proceed-to-checkout-button.php
    metalbellows-shop/woocommerce/checkout/form-checkout.php
    metalbellows-shop/woocommerce/checkout/payment.php
    metalbellows-shop/woocommerce/checkout/thankyou.php version 3.2.0 is out of date. The core version is 3.7.0
    metalbellows-shop/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0
    metalbellows-shop/woocommerce/emails/admin-new-order.php
    metalbellows-shop/woocommerce/emails/customer-invoice.php
    metalbellows-shop/woocommerce/emails/customer-processing-order.php
    metalbellows-shop/woocommerce/emails/email-addresses.php
    metalbellows-shop/woocommerce/emails/email-footer.php version 2.3.0 is out of date. The core version is 3.7.0
    metalbellows-shop/woocommerce/emails/email-header.php version 2.4.0 is out of date. The core version is 4.0.0
    metalbellows-shop/woocommerce/emails/email-order-details.php
    metalbellows-shop/woocommerce/single-product/add-to-cart/external.php
    metalbellows-shop/woocommerce/single-product/add-to-cart/grouped.php version 3.4.0 is out of date. The core version is 4.0.0
    metalbellows-shop/woocommerce/single-product/add-to-cart/simple.php
    metalbellows-shop/woocommerce/single-product/add-to-cart/variable.php version 3.4.1 is out of date. The core version is 3.5.5
    metalbellows-shop/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    metalbellows-shop/woocommerce/single-product/add-to-cart/variation.php
    metalbellows-shop/woocommerce/single-product/meta.php
    metalbellows-shop/woocommerce/single-product/photoswipe.php
    metalbellows-shop/woocommerce/single-product/price.php
    metalbellows-shop/woocommerce/single-product/product-attributes.php version 3.1.0 is out of date. The core version is 3.6.0
    metalbellows-shop/woocommerce/single-product/product-image.php
    metalbellows-shop/woocommerce/single-product/product-thumbnails.php
    metalbellows-shop/woocommerce/single-product/rating.php version 3.1.0 is out of date. The core version is 3.6.0
    metalbellows-shop/woocommerce/single-product/related.php version 3.0.0 is out of date. The core version is 3.9.0
    metalbellows-shop/woocommerce/single-product/review-meta.php
    metalbellows-shop/woocommerce/single-product/review-rating.php version 3.1.0 is out of date. The core version is 3.6.0
    metalbellows-shop/woocommerce/single-product/review.php
    metalbellows-shop/woocommerce/single-product/sale-flash.php
    metalbellows-shop/woocommerce/single-product/share.php
    metalbellows-shop/woocommerce/single-product/short-description.php
    metalbellows-shop/woocommerce/single-product/stock.php
    metalbellows-shop/woocommerce/single-product/tabs/additional-information.php
    metalbellows-shop/woocommerce/single-product/tabs/description.php
    metalbellows-shop/woocommerce/single-product/tabs/tabs.php version 2.4.0 is out of date. The core version is 3.8.0
    metalbellows-shop/woocommerce/single-product/title.php
    metalbellows-shop/woocommerce/single-product/up-sells.php
    metalbellows-shop/single-product.php version – is out of date. The core version is 1.6.4

    Outdated Templates: ?

                        Learn how to update

    Geolocation debug info

    Default customer location: geolocation_ajax
    MaxMind GeoIP database: ? The MaxMind GeoIP Database does not exist – Geolocation will not function.
    MaxMind GeoIP license: ? Geolocation has not been configured. You must enter a valid license key on the MaxMind integration settings page.
    MM_COUNTRY_CODE: ?
    GEOIP_COUNTRY_CODE: ?
    HTTP_CF_IPCOUNTRY: ?
    HTTP_X_COUNTRY_CODE: ?
    HTTP_X_REAL_IP: ?
    HTTP_X_FORWARDED_FOR: ?
    REMOTE_ADDR: 76.129.163.209
    Real external IP: 2601:846:700:95a0:2dec:4df4:8c42:4d68
    WCPBC_USE_REMOTE_ADDR: –
    Geolocation Test: ?The MaxMind GeoIP database is required. PBC Settings

    Version: 2.0.13
    Base location: US:MA
    Base currency: USD
    Price Based On: shipping
    Shipping: –
    Test mode: –
    Test country: –
    Load products price in background: –
    Prices entered with tax: –
    Calculate tax based on: shipping
    Display prices in the shop: excl Zone Pricing United States

    zone_id: united-states
    name: United States
    countries: UM | US | VI
    currency: USD
    exchange_rate: 1
    auto_exchange_rate: no
    disable_tax_adjustment: no Zone Pricing International

    zone_id: international
    name: International
    countries: AD | AE | AF | AG | AI | AL | AM | AO | AQ | AR | AS | AT | AU | AW | AX | AZ | BA | BB | BD | BE | BF | BG | BH | BI | BJ | BL | BM | BN | BO | BQ | BR | BS | BT | BV | BW | BY | BZ | CA | CC | CD | CF | CG | CH | CI | CK | CL | CM | CN | CO | CR | CU | CV | CW | CX | CY | CZ | DE | DJ | DK | DM | DO | DZ | EC | EE | EG | EH | ER | ES | ET | FI | FJ | FK | FM | FO | FR | GA | GB | GD | GE | GF | GG | GH | GI | GL | GM | GN | GP | GQ | GR | GS | GT | GU | GW | GY | HK | HM | HN | HR | HT | HU | ID | IE | IL | IM | IN | IO | IQ | IR | IS | IT | JE | JM | JO | JP | KE | KG | KH | KI | KM | KN | KP | KR | KW | KY | KZ | LA | LB | LC | LI | LK | LR | LS | LT | LU | LV | LY | MA | MC | MD | ME | MF | MG | MH | MK | ML | MM | MN | MO | MP | MQ | MR | MS | MT | MU | MV | MW | MX | MY | MZ | NA | NC | NE | NF | NG | NI | NL | NO | NP | NR | NU | NZ | OM | PA | PE | PF | PG | PH | PK | PL | PM | PN | PR | PS | PT | PW | PY | QA | RE | RO | RS | RU | RW | SA | SB | SC | SD | SE | SG | SH | SI | SJ | SK | SL | SM | SN | SO | SR | SS | ST | SV | SX | SY | SZ | TC | TD | TF | TG | TH | TJ | TK | TL | TM | TN | TO | TR | TT | TV | TW | TZ | UA | UG | UY | UZ | VA | VC | VE | VG | VN | VU | WF | WS | YE | YT | ZA | ZM | ZW
    currency: USD
    exchange_rate: 1.25
    auto_exchange_rate: no
    disable_tax_adjustment: no Action Scheduler

    Complete: 1
    Oldest: 2024-04-09 23:12:05 -0400
    Newest: 2024-04-09 23:12:05 -0400

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    For Geolocation to work, you must enter a free MaxMind license key so that WooCommerce can access the GeoIP database and download it periodically.

    Please review: https://woocommerce.com/document/maxmind-geolocation-integration/

    Also, you are running a deprecated version of the “Price Based on Country” plugin. Please update it.

    • This reply was modified 10 months, 3 weeks ago by Oscar Gare.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“select a country” placeholder in countries dropdown widget’ is closed to new replies.