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

How can I show the shortcode only in a specific product page?

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, I added this line in price.php, following the FAQs:

<?php echo do_shortcode("[woocs]"); ?>

The problem is that I need to hide the Currency Switcher in all product pages and show it in 3 products pages only, or better, in a specific category that has 3 products.

I tried adding the slug of product pages in the last option of tab OPTIONS but didn't work.
I attach the two methods I tried. Or show in all pages or hide in all pages...

This is one of the products page:
https://wpdemo.singularmaleclaria.com/producto/cuadernillo-flores-hojas-2/

Thanks!

 

 

Hello

It  should  works   with  this  setting - https://share.pluginus.net/image/i20210601130857.png - but now it looks like you disabled this plugin

Hi Pablo, thanks for reply! The plugin is enable, but with that features only show the word [woocs] as you can see:

https://wpdemo.singularmaleclaria.com/producto/cuadernillo-flores-hojas-2/

But the principal issue is that happens in all the product pages, It's impossible to divide the pages to hide and show the shortcode functionally.

As an example:

https://wpdemo.singularmaleclaria.com/producto/abstracto-2/

I don't know what I'm doing wrong...

 

Hello

Ok ! Please  drop me wp-admin access -  https://c2n.me/43SC6rb.png ->https://c2n.me/42BAoj4.png I will  check  it

Thanks Pablo, I resolve this issue adding the conversor as a shortcode in the short description of each product where I need to show it.

The new problem happens when I choose the secondary currency (USD) in these products.

After that, if I search or watch a product where I don't show the coverter, the price turns in the secondary currency, and I need to show only in the principal currencya (Argentinian Pesos).

Example:
https://wpdemo.singularmaleclaria.com/producto/ebook-flores-hojas-1/?currency=ARS

If you change to USD, any other page (without the shortcode converter) turns its price to USD.

Example:
https://wpdemo.singularmaleclaria.com/producto/explosion-de-colores-2/

How can I disable the conversion in products where I don't show the Converter Shortcode?
Do you need a wp-admin access for that?
Thanks!

 

Hello Matias

Unfortunately the plugin does not have this feature.

You need code customization.

An  example:

add_filter('wp_head',function(){
if(class_exists('WOOCS')  AND !(is_page('add_your_page')) ){
global $WOOCS;
$WOOCS->reset_currency();
}
});

Thanks Pablo! Sorry but I'm not a developer, only a designer touching plugins and code :P
Can you tell me where do I have to add that code? Maybe in the functions.php in my Child Theme?

Thanks a lot!

Hello  Matias

Maybe in the functions.php in my Child Theme? -  Yes  correct

But pay attention that you need to change this string - https://share.pluginus.net/image/i20210607124145.png - https://codex.wordpress.org/Conditional_Tags