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

Leranpress LMS and events manager prices not changing on entire site

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 WOOCS team,.

I am developing a Leranpress LMS website with"Eduma theme"  for one of my client. He wants to sell his courses atleast in 2 countries i.e. base will be Australia and second country will be Canada. I have used WOOCS currency switcher on many of my clients site flawlessly but for first time ai am facing issue as it might be due to Learnpress LMS.

The problem is the prices on website frontend is not taing effect when I switch currency from AUD to CAD$. Throughout website it remains the same price except the checkout page when it take effect.

But even on checkout page the WP events manager tickets prices are not being changed eventhough I have used WOO as payment method in that WP events manager.

 

I have used one code also as someone had same issue, but that also is not working.

code is..

$price= (course)? $course->get_price() : 0;
if ($price) {
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
}
}
return $price;

 

Website is

https://petelaurenconsulting.com

 

If you need admin control I can give the same.

Please help.

Thanks.

 

Hello

Please  read  this - https://currency-switcher.com/woocs-labs

Yes, I read that, and I used your adaptation code given to so.e other user. But it isn't working on my website.

So I had to raise a ticket. If you can please help me.

The above code mentioned itself is adaptation code giv3n by your team.

Hello

Ok! as described in this article you can create a new adaptation request

Please  add wp-admin+FTP access  to your test site - https://share.pluginus.net/image/i20210618130558.png ->https://share.pluginus.net/image/i20210618130637.png

And I will add the plugin to the queue

Thanks a lot.

I am sending the FTP and wp admin details.

Hello

I added the plugin to the adaptation queue

I will write to you as soon as we get the result

Thanks a lot Pablo.

I will be waiting.

Hello

our plugin is designed for woocommerce products. The code you pasted earlier should work if the courses will use the products template

in file - wp-content\plugins\learnpress\inc\course\abstract-course.php -  You can  add  this  code - https://c2n.me/4f38HMw.png

if ($sale_price_value) {
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$sale_price_value = $WOOCS->woocs_exchange_value(floatval($sale_price_value));
}
}
}

and   - https://share.pluginus.net/image/i20220225181238.png

if ($price) {
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$price = $WOOCS->woocs_exchange_value(floatval($price));
}
}
}

and - https://share.pluginus.net/image/i20220225181349.png

return wc_price($this->get_price());

But I don't guarantee that it will work well.

 

Ok, thanks a lot.

 

I will add this codes and update you.

Thanks a lot. Its working on learnpress courses. But same issue is with this page also.

https://petelaurenconsulting.com/events/

For which the price remains fixed i.e. while on product page to book tickets and even once its added to cart, it shows the same amount even if the currency is being changed. I am using woo payment gateway for it too.

Thanks in advance

Hello

as I wrote earlier:

our plugin is designed for woocommerce products. And if that 3rd party plugin doesn't use the features of the Woo products, in this case you need a currency converter that is designed specifically for learnpress

Ok, got it.

No problem, your above code resolved my issue of Learnpress. And you can mark this topic as resolved.

And thanks a lot once again for your help.

Hello

Welcome;)