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

I can not switch each item value from CAD to USD properly

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
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.

Hi,

I have a very basic web store http://www.onlinelcd.com, I also installed new premium switcher successfully after purchasing, and EXCHANGE RATE is set 1:07 correctly, default page of function.php has been modification correctly as well after using CAD replace GBP, however, when I switch CAD to USD or revere, the exchange rate is not right, still USD to GBP, for instance, USD $9.05 and CAD should be $13 round, but it is C$18! that is wrong! please fix it, BTW, I do not often visit the forum, so please send response to my email orcalcdca@gmail.com, thanks,

Hello

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png and  wp-admin access - https://c2n.me/42BAoj4.png  I will check it

default page of function.php has been modification correctly  - Did you customize the code?

Hi,

I have post license key in private data for this topic, please review, the function.php modification is very simple and just replace BGP with CAD in 7 place careless upcase/lowcase, anything work properly only except exchange rate

 

Thanks

 

 

global $wp,$wp_query;
$cururl=magikBolt_curPageURL();
if(class_exists('WOOCS'))
{
$usd_url = add_query_arg( array("currency"=>"USD"), $cururl);
$cad_url = add_query_arg( array("currency"=>"CAD"), $cururl);

$WOOCS=new WOOCS();

$currency_selected=$WOOCS->current_currency;
}
else{

$usd_url ="#";
$cad_url ="#";
$currency_selected="CAD";
}

if((isset($_GET['currency']) && $_GET['currency']=='USD') || $currency_selected=='USD')
{

$elected_currency='<a role="button" data-toggle="dropdown" data-target="#" class="block-currency dropdown-toggle" href="'. esc_url($usd_url).'">'
. esc_attr("USD","bolt").' <span class="caret"></span></a>';

}
else{
$elected_currency='<a role="button" data-toggle="dropdown" data-target="#" class="block-currency dropdown-toggle" href="'.esc_url($cad_url).'">'
. esc_attr("CAD","bolt").' <span class="caret"></span></a>';
}

?>

<div class="dropdown block-currency-wrapper">
<?php echo wp_specialchars_decode($elected_currency); ?>
<ul class="dropdown-menu" role="menu">
<li role="presentation">
<a role="menuitem" tabindex="-1" href="<?php echo esc_url($cad_url) ;?>">
<?php esc_attr_e('C$ - Dollar', 'bolt');?>
</a>
</li>

<li role="presentation">
<a role="menuitem" tabindex="-1" href="<?php echo esc_url($usd_url);?>">
<?php esc_attr_e('$ - Dollar', 'bolt');?>
</a>
</li>
</ul>
</div>
<?php
}
}
}

Hello

Please  check  your  access - https://clip2net.com/s/47eAVnR

I do not understand,  when I access  https://clip2net.com/s/47eAVnR, I saw an image, something is wrong? I need the correct answer, thanks.

Hello

Please  drop  me the correct wp-admin access

I double checked the “private data for this topic “, the admin access information of useid and pwd are correct, please review and try to access again, thank you very much and much appreciated for your understanding and patience 

Please  check my video in  private data

My apologize,  my mistake, I update, please review and try, thanks again.

Hello

The  same  result

Sorry for that, I tried again to access http://www.onlinelcd.com, with userid: ....d and pwd: ......8, it can login, I double checked private information to ensure the spelling are correct, please try it again.

admin access URL: http://www.onlinelcd.com/admin

Hello

The problem is in your current theme.

I  activated storefront - https://c2n.me/47imZjN.png - it works correctly

Thank you very much, I bought the theme from Magik of theme forest, now I am waiting for his response, thanks again

Hello

Hint: Perhaps the current theme somewhere uses the price of the product, which leads to a double conversion.

To  fix  it:  find this code and do the reverse conversion

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$price = $price / $rate;
}
}
}

That is so weird, I can not find relative file with search, something is wrong? please tell me which file to modify, BTW, I use bolt theme, thanks.

Hello

I can’t guess where this code is. I cannot be responsible for third-party code.

Please  contact  to the  theme  support.

Or do a text search"price" in the code editor

Thank, I found and fix it, great, thank you very much,

 

wp-content/themes/bolt/skins/default/functions.php

Hello

Great!  Welcome;)