PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Facultic Theme + Learnpress + FOX

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Hello, I hope you are well, I am working with the Facultic + Learnpress + Woocommerce + FOX theme, I have managed to make the change with the codex provided so thank you very much, however, I am still having problems changing the currency, could you help me? (https://nuevocampus.iliiet.com) Thank you very much

Hello

You can make a new adaptation request.

Please add ftp+wp-admin  access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png

And I will add it to the adaptation queue.

Thank you so much, i just do it.

Hello

We don't need access to your hosting.

Please drop me ftp+wp-admin  access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png

Updated my friend

Great! Thank you!

I added this to the adaptation queue

Thanks!

Hello dear Pablo, how are you? I wanted to know the approximate implementation time, thank you very much

Hello

Unfortunately I don't know, it's very difficult to predict the timing of changes to third-party code.

I will write to you when our developer starts checking your site.

Hello

Please do a test

the code remains as in this article - https://currency-switcher.com/learnpress-wordpress-lms-plugin  - Except this part - https://share.pluginus.net/image/i20241025142039.png

And in functions.php I added this code:

 add_filter( 'learn-press/course/regular-price', function($price, $id){
            if ($price) {
                if (class_exists('WOOCS')) {
                    global $WOOCS;
                    if ($WOOCS->is_multiple_allowed) {
                        $price = $WOOCS->woocs_exchange_value(floatval($price));
                    }
                }
            }
return $price;
 },10,2 );
 add_filter( 'learn-press/currency', function($currency){
if (class_exists('WOOCS')) {
         global $WOOCS;
        $currency = $WOOCS->current_currency;
     }
return $currency;
 } );

It works! Thank you so much Pablo!

Welcome;)

Hello Pablo, me again.

I wanted to ask you if there is a way that if I define a specific price for the currency exchange of a product, this is inherited in the learnpress course view, since it only shows me the price with the conversion rate.

Hello

If you mean fixed prices, unfortunately this only works with standard product types.