• There is an issue with Currency Price Switcher below the price section on Product tamplate
    If price is changing by specific formula using Product Price by Formul plugin
    Can you help me it or can you add filter to get not raw price

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    If that plugin supports a filter for the final price after formula, you can use the wmc_get_price($price) function to convert price.
    Best regards

    Thread Starter Max Shostak

    (@shostakmaksim)

    Try to explaine better!

    There is a row price of product or variation range
    ->
    Price formula plugin apply its formula to change the price
    ->
    Currency Price Switcher apply its currency koef

    And it work correct for all default entities
    But Your plugin have widget for product page(under Add to card)

    In price.php for this widget you use function get_variation_max_price()
    and at this section

    if ( ! $price ) {
     $price = $variation->get_price( 'edit' );
     if ( ! $raw ) {
      $price = wmc_get_price( $price, $currency_code );
     }
    }

    you request RAW price without changes of 3d party plugins.

    In my case I receive price range without applying price formula at all
    only logic of Currency Price Switcher

    Can you improve this section add support for 3d party plugins working with price in such a away or can you help me with my case

    Thank you for your time!

    • This reply was modified 3 years, 9 months ago by Max Shostak.
    • This reply was modified 3 years, 9 months ago by Max Shostak.

    Thank you for your detailed explanation.
    Will it help if I apply a filter to the final price of that function, like below:
    return apply_filters( 'wmc_get_variation_max_price', $price_max, $product, $currency_code, $raw );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compatibility with Product Price by Formula for WooCommerce’ is closed to new replies.