A
A
Alevtina2021-01-04 19:18:30
WordPress
Alevtina, 2021-01-04 19:18:30

In which Woocommerce plugin is it possible to hide currencies (but not deactivate) for the front?

It is necessary to create the following functionality: in the Woocommerce admin panel, the price of the product can be entered in dollars, euros, and ONLY the price in the default currency (hryvnia) should be displayed in the front-end. Can you tell me if this can be done with a plugin? We bought Currency Switcher, but it doesn’t fit (if there is a dollar and euro in the admin panel, then you can’t hide it in the front).
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2021-01-04
@AlevtinaLeitland

1) follow the crown here https://api.privatbank.ua/p24api/pubinfo?exchange&... write the rates to the database / save the file locally and watch it, in general it doesn’t matter, the main thing is to watch the course
2) enter additional fields _currency_price - here store the value in the currency and _currency_flag - here store the currency code
3) check the type of currency on the face, get the value from _currency_price, multiply by the saved rate and hang this case to display the price on the face
filters are normally described here https://stackoverflow.com/ questions/45806249/chang...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question