• Resolved jraminhos

    (@jraminhos)


    Hi,
    I’m using your plugin but I have a problem with order subtotal value because it’s not associated to a currency as a I expected it was.
    So, I create a rule for free shipping above a subtotal of 40.00 € which is triggered always, independently of current currency.
    Could you check it, please?
    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Dan

    (@dangoodman)

    Hi,

    Please gather the following details. Also:
    — what’s your base currency?
    — what plugin(s) you use to make a multi-currency store?

    Thread Starter jraminhos

    (@jraminhos)

    Hi Dan,
    My base currency is Euro and I’m using WooCommerce Currency Switcher to create a multi-currency store.
    Thanks.

    Plugin Author Dan

    (@dangoodman)

    Please gather the following details.

    Thread Starter jraminhos

    (@jraminhos)

    Hi Dan,
    Here you have my answers.

    1. WordPress: WordPress 4.9.5, WooCommerce: Vers?o 3.3.4, Weight Based Shipping: Vers?o 5.2.0, PHP: 5.6.35.

    2.

    https://www.lookthiswork.com/wp-content/uploads/2018/03/screeenshot1.png (OK, in EUR)
    https://www.lookthiswork.com/wp-content/uploads/2018/03/screeenshot2.jpg (Not OK, USD because we have a limit for free shipping = 4 )

    3. I’m testing it with the order:
    Item REF: 734 (https://www.lookthiswork.com/produto/graozinho-de-areia/): <weight>= 0,4 Kg, <shipping class> = N/A, <quantity>=4

    Total order weight: <weight>=1,6Kg
    Order subtotal: <price>=38 EUR = 47.04 USD
    Shipping destination: <country= Portugal,

    4. I expect to see
    Shipping = 6.00 EUR or 7.42 USD

    5. I do see instead:
    – Free shipping when currency=USD

    Thanks.

    Plugin Author Dan

    (@dangoodman)

    Hi,

    Thank you.

    As per your last message, it seems the issue is that the free shipping option appears correctly for the base currency, and doesn’t for other currencies? If so, it would be better to address your question to support of the currency switcher plugin, since it’s expected to work transparently for other plugins, what doesn’t happen in your case apparently. By the way, WooCommerce Currency Switcher does work well with Weight Based Shipping on our test staging. So it might be a currency config issue or a conflict with other plugins.

    • This reply was modified 6 years, 7 months ago by Dan.
    Thread Starter jraminhos

    (@jraminhos)

    Hi Dan,
    I opened a ticket on WooCommerce Currency Switcher plugin support an through WOOCS_LABS I reached the following solutionfor my problem:

    In file – wp-content\plugins\weight-based-shipping-for-woocommerce\server\src\RulesMapper.php try to add code:

    if(class_exists(‘WOOCS’)) {
    global $WOOCS;
    if ($WOOCS->is_multiple_allowed) {
    if($_conditions[“subtotal”][‘range’][‘min’]){
    $_conditions[“subtotal”][‘range’][‘min’]=$_subtotal[‘min’] = $WOOCS->woocs_exchange_value($_subtotal[‘min’]);
    }
    if($_conditions[“subtotal”][‘range’][‘max’]){
    $_conditions[“subtotal”][‘range’][‘max’]=$_subtotal[‘max’] = $WOOCS->woocs_exchange_value($_subtotal[‘max’]);
    }
    }
    }

    It fixed the problem.
    Maybe you can incorporate this fix in a next plugin release.

    Thanks.

    Plugin Author Dan

    (@dangoodman)

    Hi,

    Sorry for the late reply. Finally got time to check that again.

    Just to be clear, Order Subtotal is expected to work fine in the multi-currency setup. You should not need to patch the plugin. Also, you would have to apply the patch every time the plugin updates.

    I believe, the issue might be in your current shipping rules configuration. Could you attach a screenshot of your shipping rules?

    Thread Starter jraminhos

    (@jraminhos)

    Hi Dan,
    You can see my shipping rules on this link.
    Thanks.

    Plugin Author Dan

    (@dangoodman)

    Thanks.

    The rules look fine to me. Then, it might be an issue with some other plugin affecting either Currency Switcher or Weight Based Shipping. Could you temporarily deactivate all other plugins and check if the issue persists?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Order subtotal not working with several currencies’ is closed to new replies.