WordPress.org

Forums

Flat Rate per State/Country/Region for WooCommerce
[resolved] Warning : conflict with WC 2.1 (8 posts)

  1. contremaitre
    Member
    Posted 2 years ago #

    This plugin causes a conflict with the recent version of WC (2.1)
    It causes prices save to the DB with commas instead of decimals.

    Disabling this plugin solves the issue.

    https://wordpress.org/plugins/flat-rate-per-countryregion-for-woocommerce/

  2. simquo
    Member
    Posted 2 years ago #

    The same here! How to fix it?

  3. arvee2004
    Member
    Posted 2 years ago #

    Same here, any solutions?

  4. Marco Almeida | Webdados
    Member
    Plugin Author

    Posted 2 years ago #

    We're working on a fix.

    Sorry for the delay.

  5. Marco Almeida | Webdados
    Member
    Plugin Author

    Posted 2 years ago #

    contremaitre: We do not find anything on the code that could indicate that the plugin is saving prices to the DB with commas instead of decimals.

    We do not think this is the problem. Can you please give us more information?

  6. contremaitre
    Member
    Posted 2 years ago #

    The bug I encountered is described here (only since WC 2.1) :
    https://github.com/woothemes/woocommerce/issues/4778
    As soon as I disabled this plugin plugin, all was fine again.

  7. Marco Almeida | Webdados
    Member
    Plugin Author

    Posted 2 years ago #

    I've looked at that link and it does not explain why this problem happens with our plugin.

    There are no "taxes" on this plugin. This plugin sets flat (monetary and not percentage) rates. The values are always stored using "." as decimal, no matter what the WooCommerce settings. We use php's "float" function to make sure the calculations are made correctly.

    The problem we do know we have since 2.1 is the value not loading on the checkout page when you change the billing country.

    We are investigating on this and if you still think this is a "," vs. "." issue, please reply with more detailed information.

  8. Marco Almeida | Webdados
    Member
    Plugin Author

    Posted 2 years ago #

    We made some extra checks and changed the configuration fields in order to make sure the values are displayed WITH localization and stored WITHOUT localization.

    It should be fixed on 1.1

    Please give us feedback.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flat Rate per State/Country/Region for WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.