标签:badge
-
在Woocommerce 3中的销售徽章上显示折扣百分比 - php
这适用于简单产品,但对于可变产品却给我两个错误。在档案中的销售闪存中,我得到NAN%,错误为“遇到非数值”。 我的代码: add_filter( 'woocommerce_sale_flash', 'add_percentage_to_sale_bubble' ); function add_percentage_to […]
这适用于简单产品,但对于可变产品却给我两个错误。在档案中的销售闪存中,我得到NAN%,错误为“遇到非数值”。 我的代码: add_filter( 'woocommerce_sale_flash', 'add_percentage_to_sale_bubble' ); function add_percentage_to […]