• Resolved alex4e

    (@alex4e)


    Hello, we are about to adopt the euro as an official national currency and we have a requirement to display each price in two currencies at the same time – the current bgn and the euro. All prices are currently displayed in the store’s currency (bgn) and with an additional script we convert them to and show in euro. But our script only works with standard WooCommerce features and hooks.
    Can you give me any hints and tips about actions and hooks in your plugin so that I can add of each product add-on in the brackets after price the euro value (I will calculate it by formula), as it currently looks like this (+10 bgn), and I want it to be like this (+10 bgn / 5 €). I need this on the single product page and when displaying the option in the cart/ checkout and emails (if possible, in fact, in all places where your plugin displays the add-on price, but these are the specific places I am currently using).
    Thanks in advance for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Vanesa

    (@vanesarodriguez)

    Hello there!

    I hope you are doing great 😀

    We use woocommerce features in our plugin, however, to ge the desired behaviour you will need to get a customization developed for your exact case.
    You could take the woocommerce price hook to add that but you would need to fully develop that currency calculation.

    I hope this information was helpful. We remain at your disposal for any other doubts or issues.

    Thread Starter alex4e

    (@alex4e)

    Hello,
    Thank you for these datails. Yes, I can confirm that will fully develop the currency calculation. My question is about your hooks and filters, because I’ve already developed the calculcation and displaying of the additional currency for the general woocommerce price hooks and filters but it doesn’t apply to the additional price in brackets, which is indicated after the corresponding product add-on option. On the cart/checkout page as well where it’s mentioned as bullet under the product name. Which means that you are using your own logic and function(s). My question is which/what is it, so that I can hook to it and add what is needed in my case. Just give me any hints here to not explore the whole plugin. If you have public documentation for the plugin, I would be grateful if you could share a link too.
    Thank you for your help!

    Facundo A.

    (@aranofacundo)

    Hi there,

    In this case, you could try checking the yith_wapo_option_price_html and yith_wapo_addon_price filter hooks.

    You could also check the integration with our multi currency switcher in the following file of the plugin:

    includes/compatibility/class-yith-wapo-multi-currency-switcher-compatibility.php

    We’ll remain at your disposal.

    Thread Starter alex4e

    (@alex4e)

    Hi,

    Thank you for your help. I managed to do what I need. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.