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

label after price doubled

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.

In functions.php in my theme I use this filter function:

add_filter('woocommerce_get_price_html","my_function", 10, 2);

function custom_price( $price, WC_Product $product )
{
$price .= '<span class="ammount">/m</span>';
return $price;
}

Functions only adds information that price is for meter, for example 520.00 Kč/m

Everything was ok when I was using older version of WOOCS. But since I bought and installed WOOCS - WooCommerce Currency Switcher v.2.3.5 the /m became double like this 520.00 Kč/m/m which is nonsense.

You can see it here https://www.wooltrade.cz/en/cat/wool-fabrics/

Hello

Paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png and  wp-admin access - https://share.pluginus.net/image/i20210618130637.png

I will  check it

Hi,

I have already posted desired data. Do I have to do anything else?

Hello

Disable  this  option - https://share.pluginus.net/image/i20210702120748.png

OR  add  CSS

.price span.ammount~span.ammount{

display :  none;

}

OR restrict the execution of your code in ajax mode

if(!wp_doing_ajax()){

//your  code

}

Sorry, forgot to reply.

WOOCS option didn't work but CSS did the trick. Thanks for solution.

Hello

Welcome;)