在Woocommerce 2上,待售产品会在<del>
标记中显示常规价格,然后是销售价格(其本身位于<ins>
标记中)。 IE8在正常价格上显示<del>
标记,然后在销售项目后的所有文本上重新应用<del>
(甚至到页脚)。只有常规项应显示<del>
标记。所有其他浏览器都正确显示。它似乎是在class-wc-product-variation.php上。我看到了对标签插入的引用:
public function get_price_html() {
if ( $this->price !== '' ) {
if ( $this->price == $this->sale_price && $this->sale_price < $this->regular_price ) {
$price = '<del>' . woocommerce_price( $this->regular_price ) . '</del> <ins>' . woocommerce_price( $this->sale_price ) . '</ins>';
$price = apply_filters( 'woocommerce_variation_sale_price_html', $price, $this );
} elseif ( $this->price > 0 ) {
$price = woocommerce_price( $this->price );
$price = apply_filters( 'woocommerce_variation_price_html', $price, $this );
} else {
$price = __( 'Free!', 'woocommerce' );
$price = apply_filters( 'woocommerce_variation_free_price_html', $price, $this );
}
} else {
$price = apply_filters( 'woocommerce_variation_empty_price_html', '', $this );
}
return $price;
}
if ( $this->price !== '' ) {
if ( $this->price == $this->sale_price && $this->sale_price < $this->regular_price ) {
$price = '<del>' . woocommerce_price( $this->regular_price ) . '</del> <ins>' . woocommerce_price( $this->sale_price ) . '</ins>';
$price = apply_filters( 'woocommerce_variation_sale_price_html', $price, $this );
} elseif ( $this->price > 0 ) {
$price = woocommerce_price( $this->price );
$price = apply_filters( 'woocommerce_variation_price_html', $price, $this );
} else {
$price = __( 'Free!', 'woocommerce' );
$price = apply_filters( 'woocommerce_variation_free_price_html', $price, $this );
}
} else {
$price = apply_filters( 'woocommerce_variation_empty_price_html', '', $this );
}
return $price;
}
我没有看到任何内容会导致IE无法关闭标记。我在WooCommerce的CSS文件中没有看到与
<del>
,<del>
或<strike>
相关的任何内容。
显然,我的白内障正在加班加点,我遗漏了一些明显的东西。任何人? Bueller?