Home Forums Plugins CURCY – WooCommerce Multi Currency Subtotal item price

Subtotal item price

  • Author
    Posts
  • #84392

    Sarah Breinbauer
    Participant

    It seems that the forum does not work, so I have to add again the ticket

    Hi

    We have a following problem explained by the picture in the attachment.

    There are three screen shots. The first part is the original price in EUR, and the second part is a screenshot from a same product in Japanese Yan with exchange rate 127.14007706 and 0 exchange fee. The subtotal is calculated in the wrong way. It should be calculated as: Discounted Price times Quantity. But the problem is that by your plugin the subtotal item price is calculated as: Discounted prices times Quantity times Exchange Rate times Exchange Fee. The problem is that discounted price already has applied Exchange Rate and Exchange fee, and in the subtotal item price Exchange Rate and Exchange Fee is calculated twice.

    For displaying a subtotal price, we use standard woocommerce functions. We apply woocommerce_cart_item_subtotal filter, and for the price we call WC()->cart->get_product_subtotal( $_product, $cart_item[‘quantity’] ), according to the documentation: http://hookr.io/filters/woocommerce_cart_item_subtotal/ and https://woocommerce.wp-a2z.org/oik_api/wc_cartget_product_subtotal/

    Do you have a solution which is in align with standard woocommerce procedures and your plugin? In attachment is also a woocommerce cart.php template of our theme. Also we want to make use of your tapping into ‘woocommerce_cart_product_subtotal’ filter by which you display correctly the currency signs.

    Please let us know what solution is in accordance with your plugin. We have very difficult situation that we rely on your plugin, and this mistake is live on the website. Please let us know as soon as possible

You must be logged in to see replies to this topic. Click here to login or register