Woocommerce dropdown price and dropdown volume shows <span> tag

I am creating an online store and I’m almost done, but now in my drop-down menu on one product you can select the desired amount, the price is also displayed in this li element.

But there is also "100 (<span class =" amount "> € 56.15)" visible.

a small team of 5 people worked on this website, so a lot has been added. but I have no idea where to fix it.

See these links for images.

enter image description here enter image description here

I hope and think this is a small problem.

+4
source share
1 answer

, wc_price() , , <span>. :

$price = '56.15';
echo get_woocommerce_currency_symbol() . number_format_i18n( $price );

WooCommerce wc_price(), span. - , :

$price = '56.15';
echo wc_clean( wc_price( $price ) );

wc_clean() HTML- , , , , <span>.

HTML-, ; , , . , , , WordPress WooCommerce, , ..

0

Source: https://habr.com/ru/post/1626769/


All Articles