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

WOOCS Shortcode is NOT Working

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.

Hi there! We've installed your WOOCS Currency Switcher plugin not too long ago and we're almost 100% set up the way we need to be. We have the plugin installed on 2 different websites. One is working properly and the other one we're experiencing a bug. The first website that is working properly is admorelighting.com & the website we're experiencing the bug is bikeracklight.com

We ran into an issue with the Shortcode, which for whatever reason works on the AdMore website, but does not work on the Beacon Rack Light website. If you scroll down to the footer of both websites, you will see a section in the bottom right corner for the currency switcher. On the AdMore website, it displays properly like it should, allowing customers to switch between there currency of choice. However, on the Beacon Rack Light website, it does not display the currency switcher, it only displays the shortcode in text format. Why would the shortcode be working on one website but not the other? Both websites are set up almost exactly the same, with slight differences. How should we go about fixing this?

Thank you in advance for any help and information you're able to provide!

Hello

So this content field does not work with the shortcode

Please try another shortcode (for testing purposes). An  example:

[products limit="1"  orderby="popularity"]

OR

try to remove the shortcode and write it again manually (maybe the text contains invalid characters)

Hey Pablo, thanks again for the helpful response! I tried using a 'Text' widget instead of the 'Custom HTML' widget and it now works properly.

We ran into a separate issue this morning with rounding our product prices. We are trying to make our CAD prices round to the nearest dollar. For example, if our product is priced at $349.53, we would like the price rounded up to $350.00. The price NEEDS to maintain the 2 decimal places, the price must include the '.00' and not just a whole number of $350.

Copied below is the code I've added into the functions.php file in order to round the CAD prices of our products:

add_filter('woocs_raw_woocommerce_price', function ($price) {
global $WOOCS;
if ($WOOCS->current_currency === 'CAD') {
$price = round($price + 0.01) - 0.01;
}
return $price;
});

This almost works exactly how we need it to. It rounds the products price up on SINGLE products ONLY. When trying to round up on VARIATION products, the rounding does NOT work. So we need this ccode snippet to work with variation products AND round to the nearest dollar, not .99.

Any information or help regarding this situation is greatly appreciated, thanks again for all your help Pablo!

Hello

Please  read  this  - https://currency-switcher.com/hook/woocs_raw_woocommerce_price  AND https://currency-switcher.com/hook/woocs_woocommerce_variation_prices\

Try to use:

if ($WOOCS->current_currency === 'CAD') {
$price = round($price );
}