HTML Tags showing on Checkout/Confirmation Page
-
Using Woocommerce 3.6.1 – when users checkout, the subtotal and total have the entire <span> html tags showing (see screenshot https://prnt.sc/nfup7z).
<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>1.00</span>
When I look at the woocommerce php file that has this snippet of code (wc-`formatting-functions.php) I found the below piece of code (https://prnt.sc/nfuprh):
$formatted_price = ( $negative ? ‘-‘ : ” ) . sprintf( $args[‘price_format’], ‘<span class=”woocommerce-Price-currencySymbol”>’ . get_woocommerce_currency_symbol( $args[‘currency’] ) . ‘</span>’, $price );
$return = ‘<span class=”woocommerce-Price-amount amount”>’ . $formatted_price . ‘</span>’;if ( $args[‘ex_tax_label’] && wc_tax_enabled() ) {
$return .= ‘ <small class=”woocommerce-Price-taxLabel tax_label”>’ . WC()->countries->ex_tax_or_vat() . ‘</small>’;
}`—–
Does anybody have thoughts or suggestions as to how to make it so the <span> tags do not show to the user?
- The topic ‘HTML Tags showing on Checkout/Confirmation Page’ is closed to new replies.