• Resolved astralex

    (@astralex)


    Hi guys,
    I picked WooCommerce Currency Switcher (FOX) as you list it as compatible with your plugin.
    Unfortunately, it’s not (any more?). On products with tiers, when the product page is loading, the correctly converted price value is shown for just a second. Then it is replaced by a wrong value (it’s in the original currency, but with the currency symbol switched to). The tiers’ price is listing the first range with a correctly converted value, while all the following tiers are wrong.
    Here is what I mean. This shows prices in original currency (USD) with all correct values: https://prnt.sc/tf413hIgb5fx
    Here is the same product converted to SEK: https://prnt.sc/UZyAUcQYLnRl

    I did activate the integration: https://prnt.sc/jAMEgXh9ieAv
    I got latest paid FOX plugin, but I even tried to revert to the older free one you are linking to, but it behaves absolutely the same.
    I have this running on my staging environment, which I can give you an access to if needed.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WP Developer

    (@bycrik)

    Hello @astralex,

    It looks like it does not work correctly with the percentage-based tiered pricing rules and calculate price twice.

    Can you please confirm that you use the percentage rules?

    Thread Starter astralex

    (@astralex)

    No, I use fixed prices: https://prnt.sc/KWuGKgWEUyWS

    Plugin Author WP Developer

    (@bycrik)

    Let me double check this and I will get back to you.

    Plugin Author WP Developer

    (@bycrik)

    Can you please clarify what version of Fox multi currency plugin you use?

    I tested it with the version 2.4.0 (free) and it works fine for me.

    Try to disable the integration and add the following code to your functions.php:

    	add_filter( 'tiered_pricing_table/price/price_by_rules',
    function ( $product_price, $quantity, $product_id, $context, $place, \TierPricingTable\PricingRule $pricingRule ) {

    if ( $pricingRule->isPercentage() ) {
    return $product_price;
    }

    global $WOOCS_STARTER;

    if ( $WOOCS_STARTER && $product_price ) {
    if ( 'view' === $context ) {
    return (float) $WOOCS_STARTER->get_actual_obj()->raw_woocommerce_price( $product_price,
    wc_get_product( $product_id ) );
    }
    }

    return $product_price;

    }, 10, 10 );
    Thread Starter astralex

    (@astralex)

    Hi, I already had this issue resolved by the Fox support. It is working now with the integration enabled.

    Thank you.

    Plugin Author WP Developer

    (@bycrik)

    Thank you for confirming!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.