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 pleaseIf 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.
Quote from Pablo Borysenco on June 21, 2023, 11:56Hello
In this case, there are two solutions:
- 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
- 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();
}
});
Hello
In this case, there are two solutions:
- 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
- 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();
}
});
Quote from Chris on June 22, 2023, 11:34Hi,
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!
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!
Quote from Pablo Borysenco on June 22, 2023, 12:06Hello
I think adaptation is the better way.
Hello
I think adaptation is the better way.
Quote from Chris on June 22, 2023, 13:46Hi,
Okay noted. Thank you
Hi,
Okay noted. Thank you
Quote from Chris on July 3, 2023, 19:05Hi, 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
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
Quote from Pablo Borysenco on July 4, 2023, 11:13Hello
Try to add : shop,product-category,rooms
Hello
Try to add : shop,product-category,rooms
Quote from Chris on July 6, 2023, 22:13Hi, 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?
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?
Quote from Chris on July 6, 2023, 22:31If 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
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
Quote from Pablo Borysenco on July 7, 2023, 11:41Hello
Try in file - wp-content\plugins\woocommerce-currency-switcher\index.php - delete this symbol "$" - https://share.pluginus.net/image/i20230707123857.png
Hello
Try in file - wp-content\plugins\woocommerce-currency-switcher\index.php - delete this symbol"$" - https://share.pluginus.net/image/i20230707123857.png