• We’ve been using this plugin for a while but have noticed recently that the rules for ‘price based on’ are being ignored.

    We are based in the UK and also ship to the US. In the settings we have them set to base the rules on the billing country so most users will see the site in £. However, some users are experiencing issues when they have done an order to the US, the next time they log back in to place an order the prices are showing in $, despite their billing country still being UK.

    Are you able to help with this at all please?

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

    (@oscargare)

    When a user places an order (or updates the checkout fields), WooCommerce stores the billing and shipping address in the session (cookie).
    The next time the user visits the page (even if the user is logged in), WooCommerce updates the user’s billing and shipping address with the data stored in the session.
    So when “Price Based on Country” gets the billing country from the WooCommerce user, it gets the US and displays the prices for this country.

    Thread Starter kerryus23

    (@kerryus23)

    Thanks Oscar, the billing address does not change though when this error occurs? Sometimes my customers ship to the US but mostly they ship to the UK. They are UK based so the billing country does not change, only the shipping country when they need to order to the US. If the billing country is always the same, the WooCommerce cookie should not impact the pricing rules if it is set to look at the Billing Country – unless I have misunderstood?

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    In our tests, if the option “Price based on” is “billing country, ” changing the shipping country does not affect the pricing zone.

    Could you share the WooCommerce system report so I can review the settings and do a test? Thanks (WooCommerce > Status > Click on “Get System Report” > Click on “Copy for support” > Paste here)

    Thread Starter kerryus23

    (@kerryus23)


    WC Version: 8.4.0
    REST API Version: ? 8.4.0
    WC Blocks Version: ? 11.6.2
    Action Scheduler Version: ? 3.7.0
    Log Directory Writable: ?
    WP Version: ? 6.4.2 – There is a newer version of WordPress available (6.4.3)
    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: 8.2.14
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3000
    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: 50 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ? Database

    WC Database Version: 8.4.0
    WC Database Prefix: wp_
    Total Database Size: 74.76MB
    Database Data Size: 46.50MB
    Database Index Size: 28.26MB
    wp_woocommerce_sessions: Data: 0.05MB + 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.27MB + Index: 0.11MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 3.52MB + Index: 4.03MB + 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.05MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.13MB + Index: 0.19MB + 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.06MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 1.52MB + Index: 0.98MB + Engine InnoDB
    wp_eg_grids: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_eg_item_elements: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_eg_item_skins: Data: 1.52MB + Index: 0.03MB + Engine InnoDB
    wp_eg_navigation_skins: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_fa_user_logins: Data: 0.02MB + Index: 0.25MB + Engine InnoDB
    wp_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_coupons: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_carts: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_followup_customers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_followup_email_excludes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_orders: Data: 0.47MB + Index: 0.13MB + Engine InnoDB
    wp_followup_email_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_followup_followup_history: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_order_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_order_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 3.33MB + Index: 0.34MB + Engine InnoDB
    wp_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_post_smtp_logmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_post_smtp_logs: Data: 7.02MB + Index: 0.00MB + Engine InnoDB
    wp_postmeta: Data: 16.52MB + Index: 13.03MB + Engine InnoDB
    wp_posts: Data: 4.52MB + Index: 0.48MB + Engine InnoDB
    wp_sbi_feed_caches: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_sbi_instagram_posts: Data: 0.16MB + Index: 0.00MB + Engine InnoDB
    wp_sbi_sources: 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_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 4.52MB + Index: 6.03MB + Engine InnoDB
    wp_users: Data: 0.20MB + Index: 0.23MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.09MB + Index: 0.06MB + 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.16MB + Index: 0.19MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.16MB + Index: 0.16MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + 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_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB Post Type Counts

    attachment: 217
    custom_css: 2
    customize_changeset: 12
    divi_cf_db: 173
    et_pb_layout: 27
    follow_up_email: 1
    nav_menu_item: 14
    oembed_cache: 1
    page: 26
    post: 3
    postman_sent_mail: 250
    product: 5
    revision: 1
    rl_gallery: 1
    shop_coupon: 66
    shop_order: 1591
    shop_order_refund: 17
    wpcf7_contact_form: 1 Security

    Secure connection (HTTPS): ?
    Hide errors from visitors: ? Active Plugins (20)

    Classic Editor: by WordPress Contributors – 1.6.3
    Contact Form 7 Campaign Monitor Extension: by Renzo Johnson – 0.4.67
    Contact Form 7: by Takayuki Miyoshi – 5.8.5
    Email Login Auth: by Michal Stanke – 0.4
    Essential Grid: by ThemePunch – 2.2.5
    Smash Balloon Instagram Feed: by Smash Balloon – 6.2.7
    Post SMTP: by Post SMTP – 2.8.8
    Redirect After Login: by marcelotorres – 0.1.9
    Responsive Lightbox & Gallery: by dFactory – 2.4.6
    Divi Contact Form DB: by Web-Ace Tech Services – 1.9.1
    UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.23.16

    Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.5.0
    Password Strength Settings for WooCommerce: by Daniel Santoro – 3.0.1
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.4.5
    WooCommerce Stripe Gateway: by WooCommerce – 7.8.1
    Invoices for WooCommerce: by Bas Elbers – 3.1.9
    WooCommerce Price Based on Country: by Oscar Gare – 3.4.2
    WooCommerce Store Credit: by Themesquad – 4.3.1
    WooCommerce: by Automattic – 8.4.0 (update to version 8.5.2 is available)
    Yoast SEO: by Team Yoast – 21.8 Inactive Plugins (8)

    Akismet Anti-spam: Spam Protection: by Automattic – Anti-spam Team – 5.3
    Follow-Up Emails: by WooCommerce – 4.8.23
    Gravity Divi – Gravity Forms Customizer Module: by CODECRATER – 1.0.5
    Order Export for WooCommerce: by JEM Plugins – 3.21
    User Login History: by Er Faiyaz Alam – 2.1.3
    Version Control for jQuery: by Leander Iversen – 3.8
    WP All Export: by Soflyy – 1.4.1
    WP Mail SMTP: by WP Mail SMTP – 3.11.0 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.1.5
    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: 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 Woo.com: –
    Enforce Approved Product Download Directories: –
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: – WC Pages

    Shop base: #142 – /shop/
    Cart: #143 – /cart/
    Checkout: #144 – /checkout/
    My account: #145 – /my-account/
    Terms and conditions: #179 – /terms-and-conditions/ Theme

    Name: Montana
    Version: 1.0.1531910678
    Author URL: https://thedesignspace.co
    Child Theme: ?
    Parent Theme Name: Divi
    Parent Theme Version: 4.23.4
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ? Templates

    Overrides: montana-for-divi/woocommerce/checkout/thankyou.php version 3.2.0 is out of date. The core version is 8.1.0
    montana-for-divi/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0
    montana-for-divi/woocommerce/emails/admin-new-order.php version 3.5.0 is out of date. The core version is 3.7.0
    montana-for-divi/woocommerce/emails/customer-completed-order.php version 3.5.0 is out of date. The core version is 3.7.0
    montana-for-divi/woocommerce/emails/customer-processing-order.php version 3.5.0 is out of date. The core version is 3.7.0
    montana-for-divi/woocommerce/emails/customer-reset-password.php version 3.5.0 is out of date. The core version is 4.0.0
    montana-for-divi/woocommerce/myaccount/orders.php version 3.2.0 is out of date. The core version is 7.8.0
    montana-for-divi/woocommerce/myaccount/view-order.php
    montana-for-divi/woocommerce/single-product/add-to-cart/simple.php version 3.4.0 is out of date. The core version is 7.0.1
    montana-for-divi/woocommerce/single-product/price.php
    montana-for-divi/woocommerce/single-product/product-thumbnails.php version 3.3.2 is out of date. The core version is 3.5.1

    Outdated Templates: ?

                        Learn how to update

    Geolocation debug info

    Default customer location: geolocation
    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: 188.39.249.218
    Real external IP: 188.39.249.218
    WCPBC_USE_REMOTE_ADDR: –
    Geolocation Test: ?The MaxMind GeoIP database is required. PBC Settings

    Version: 3.4.2
    Base location: GB
    Base currency: USD
    Price Based On: billing
    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 UK

    zone_id: uk
    enabled: yes
    name: UK
    countries: GB
    currency: GBP
    exchange_rate: 0.76
    auto_exchange_rate: no
    disable_tax_adjustment: no
    order: 9999 Admin

    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-variation-management
    product-virtual-downloadable
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page

    Disabled Features: customize-store
    minified-js
    new-product-management-experience
    product-external-affiliate
    settings
    async-product-editor-category-field

    Daily Cron: ? Next scheduled: 2024-02-07 09:12:54 +00:00
    Options: ?
    Notes: 79
    Onboarding: completed Action Scheduler

    Complete: 313
    Oldest: 2024-01-07 17:23:19 +0000
    Newest: 2024-02-06 09:32:09 +0000

    Failed: 27
    Oldest: 2024-01-10 17:40:28 +0000
    Newest: 2024-02-05 20:39:29 +0000

    Pending: 2
    Oldest: 2024-02-06 11:08:00 +0000
    Newest: 2024-02-06 20:39:29 +0000 Store Credit

    Prices entered with tax: no
    Show My Account: no
    Delete after use: yes
    Individual use: no
    Include tax: no
    Apply to shipping: no
    Coupon code format: {coupon_code}
    Overrides: – Status report information

    Generated at: 2024-02-06 10:42:37 +00:00
    `

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    What’s the url of the site so I can do a test on the checkout?

    Thread Starter kerryus23

    (@kerryus23)

    Hi Oscar

    Not sure I want to send that in a public forum given the information pasted above. Do you have a support email that I can share this with please?

    Thread Starter kerryus23

    (@kerryus23)

    Hi Oscar

    We have just had another case of this being an issue on our site. As above the billing address has always been set and saved as the UK for previous orders and the issue order.

    Do you have an email address I can share some further details with please?

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    Private suppor is only for PRO users. This forum is for comunity support.
    Developers also eat every day.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Price based on settings being ignored’ is closed to new replies.