juanavall
Forum Replies Created
-
Ok, sorry!
Hi again!
After trying it for a while I observed that script does not perform the discount properly.
For example, if I subtract 20% to AUD based on USD, discounted total is $ 98.- regardless of the amount of the purchase.
Below the code to check that it is correct.
Thanks in advance.
********************************************
add_filter(‘woocs_currency_data_manipulation’, ‘my_woocs_currency_data_manipulation’, 1, 1);
function my_woocs_currency_data_manipulation($currencies)
{
foreach ($currencies as $key => $value)
{
if ($key == ‘USD’)
{
$currencies[$key][‘rate’] = $value[‘rate’];
break;
}
elseif($key == ‘AUD’)
{
$currencies[$key][‘rate’] = $value[‘rate’] – 0.20;
}
elseif($key == ‘CAD’)
{
$currencies[$key][‘rate’] = $value[‘rate’] – 0.20;
}
}
return $currencies;
}********************************************
It works like a charm…Thank you!
Forum: Plugins
In reply to: [Redirection] Korean | Decoder/Encoder IssuesI had simply added that redirect so that you could see the issue I was referring to.
Fortunately I solved the problem. This is an internal error handling special characters in Polylang Pro plugin. Nothing to do with Redirection plugin.
Thanks again for your time, John!
Best.
Forum: Plugins
In reply to: [Redirection] Korean | Decoder/Encoder IssuesYes, that’s right. However, it does not redirect to the same URL, since one of them is written in lowercase and the other in uppercase.
Google recognizes Korean characters and decodes them in capitals, that’s why I need to redirect the url.
Polylang Pro only seems to decode in lowercase and that seems to be what causes the problem.
Forum: Plugins
In reply to: [Redirection] Korean | Decoder/Encoder IssuesHi John, thanks for your response.
Here is the URL that isn’t working.
Below I include two screenshots:
https://cutt.ly/5tYyOUf
https://cutt.ly/LtYyAP2Cloudflare has been cleared and is in Development Mode.
Thanks for your time.
Forum: Plugins
In reply to: [Redirection] Korean | Decoder/Encoder IssuesHi again!
Please enter the first result that Google returns and you will see what I mean.
Forum: Plugins
In reply to: [Redirection] Korean | Decoder/Encoder IssuesHi John,
I don’t think it is a redirect problem but rather that I am doing something wrong in its configuration and I cannot realize where the problem is.
As I said, misconfigurations appear with the languages that require decoding (Russian, Chinese, Korean, Japanese). It seems that it is a matter of uppercase and lowercase but I do not how to solve it.
I am attaching two screenshots in which you can see the issue I am referring to:
1.- https://cutt.ly/RtTnh3F
2.- https://cutt.ly/QtTnfD6Please let me know if you need temporary access.
Thanks!
Forum: Plugins
In reply to: [Redirection] Korean | Decoder/Encoder IssuesHi John, thank you for your quick response.
URL:
https://cutt.ly/sjnsdybweksd55
Redirects below:
/ko/%25ec%2586%25a1%25ec%25b9%2598-%25ec%25b9%25b4%25ed%258e%25ab/(.*)
/ko/%ec%86%a1%ec%b9%98-%ec%b9%b4%ed%8e%ab/$1/ko/cowhide-rugs/(.*)
/ko/%ec%86%a1%ec%b9%98-%ec%b9%b4%ed%8e%ab/$1/ko/송치-카펫$
/ko/%ec%86%a1%ec%b9%98-%ec%b9%b4%ed%8e%ab//ko/
/ko/%ec%86%a1%ec%b9%98-%ec%b9%b4%ed%8e%ab/Forum: Plugins
In reply to: [Autoptimize] Inline and Defer CSS | Mod_Security ErrorI removed both strings and “../” and now it seems to work properly.
Thank you @optimizingmatters and @zidanpragata for your help!
Forum: Plugins
In reply to: [Autoptimize] Inline and Defer CSS | Mod_Security ErrorHi Frank, thanks for your quick response.
That path does not exist within the critical CSS.
What I copy next is the only thing that looks like:@font-face{font-family:’nm-font’;src:url(//mysite.com/wp-content/themes/savoy/assets/css/font-icons/theme-icons/fonts/nm-font.ttf?pm8hp9) format(‘truetype’),url(//mysite.com/wp-content/themes/savoy/assets/css/font-icons/theme-icons/fonts/nm-font.woff?pm8hp9) format(‘woff’),url(//mysite.com/wp-content/themes/savoy/assets/css/font-icons/theme-icons/fonts/nm-font.svg?pm8hp9#nm-font) format(‘svg’);font-weight:400;font-style:normal}
Forum: Plugins
In reply to: [WooCommerce] Woocommerce + Polylang Pro + Hostgator = Error 524I close the topic since Polylang support is working on it. Thanks @harishanker for your time.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce + Polylang Pro + Hostgator = Error 524Hi @harishanker, thanks for your help. I’ll contact @chouby (Polylang support) and I’ll let him know your comments.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce + Polylang Pro + Hostgator = Error 524Hi @harishanker, could we do some test on site? Please let me know. Thank you.
Forum: Plugins
In reply to: [Polylang] Fatal error upon activationIt looks similar to the error that appears when I want to make a new translation with Polylang Pro + Polylang for Woocommerce.