• Hello there,

    I tried out some different scenarios and the problem seems to have teething problems handling exchange rates as mentioned in the subject. Example; EUR -> HUF if HUF is the base currency the exchange rate won’t even show under 0.00… and if EUR is the base currency the amount will be calculated exchangerate^2 into HUF.

    Thanks in advance
    Aaron

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter aaronpsz

    (@aaronpsz)

    I found the reason for my issue. It’s one of my custom hook for min price for variable products.

    // add_filter(‘woocommerce_variable_price_html’,’shop_variable_product_price’, 10, 2 );
    // function shop_variable_product_price( $price, $product ){
    // $variation_min_reg_price = $product->get_variation_regular_price(‘min’, true);
    // $variation_min_sale_price = $product->get_variation_sale_price(‘min’, true);
    // if ( $product->is_on_sale() && !empty($variation_min_sale_price)){
    // if ( !empty($variation_min_sale_price) )
    // $price = ‘‘ . wc_price($variation_min_reg_price) . ‘
    // ‘ . wc_price($variation_min_sale_price) . ‘‘;
    // } else {
    // if(!empty($variation_min_reg_price))
    // $price = ‘‘.wc_price( $variation_min_reg_price ).’‘;
    // else
    // $price = ‘‘.wc_price( $product->regular_price ).’‘;
    // }
    // return $price;
    // }

    Do you think it’s possible to make it work with such a hook somehow?

    Thank you in advance

    Plugin Support rosenguyen

    (@rosenguyen)

    Hi,

    We have checked your code and it is fine to use.

    Best regards,

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