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

Disable On Pages Did Not Totally Disable

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.
12

Hello

In this case, there are two solutions:

  1.  to resolve the problem that the currency amount is not calculated on rental product on a single product page, product archive page and also shop page.  - This is an incompatibility with third-party functionality, you can make a request for adaptation  - https://currency-switcher.com/woocs-labs
  2. Or  use  a custom code to reset currency on  these  pages. An example:

add_action('wp_head' , function(){

if (class_exists('WOOCS') && ( is_shop() || is_product_category())) {

global $WOOCS;

$WOOCS->reset_currency();

}
});

 

Hi,

I've added the custom code to reset the currency on these pages via Code Snippets plugin. However, it does not reset on these pages when I tried on it. Do I need to remove the input for the"Disable on Pages" options in order to make this work temporary? Anyway, I've already requested for an adaptation. Good luck & all the best!

Hello

I think adaptation is the better way.

Hi,

Okay noted. Thank you

Welcome;)

Hi, sorry to disturb you again.

How do I use the"Disable on pages" options with direct-use to disable FOX for temporary use so that the rental product is not shown with currency exchange?

For shop page, I can use the slugs 'shop', but what about shop category archive pages and single product page?

Thanks for the help

Hello

Try to add : shop,product-category,rooms

Hi, thanks for the suggestions. I have tested but it only works for the pages with the exactly same slugs inputted. For example, if the page link is https://mywebsite.com/product-category/categoryname/ , then it would only work if the input value of the slugs included 'categoryname', which means it isn't work if only 'product-category' is inputted. Another example is if the page link is https://mywebsite.com/shop/categoryname/childcategoryname/abc-single-room-for-rent/ , then it would only work if the input value of the slugs include 'abc-single-room-for-rent'. Seems like the value of the slugs have to be the last part of the link in order for it to work. I can input all the slugs for categories and child categories, but it seems impossible if I were to input the slugs of all products for single product page whenever a product is submitted & published. Do you have any better ideas or solutions for this?

If I my intention is to show it in cart, checkout, my-account/dashboard/, my-account/orders/, my-account/view-order/8602/, and all transactional emails, is it possible to implement it via slugs?

*8602=Order ID

Hello

Try  in file -  wp-content\plugins\woocommerce-currency-switcher\index.php - delete  this  symbol"$" - https://share.pluginus.net/image/i20230707123857.png

12