• Здравствуйте.

    Установлен код для активации значка распродажи.

    // Добавляем значение сэкономленных процентов рядом с ценой у товаров
    add_filter( ‘woocommerce_sale_price_html’, ‘woocommerce_custom_sales_price’, 10, 2 );
    function woocommerce_custom_sales_price( $price, $product ) {
    $percentage = round( ( ( $product->regular_price – $product->sale_price ) / $product->regular_price ) * 100 );
    return $price . sprintf( __(‘
    Экономия %s’, ‘woocommerce’ ), $percentage . ‘%’ );
    }

    После добавления значка от YITH WooCommerce Badge Management, значок “Экономия” исчезает, подскажите как включить их отображение вместе?

    https://www.ads-software.com/plugins/yith-woocommerce-badges-management/

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi swaymen,

    I hope I understood: you want that the WooCommerce “On Sale” badge is visible also if the product has a badge.

    This feature will be available in the Version 1.2.5 we’ll release today!
    After update, in YIT Plugins -> Badge Management you will find an option called “Product Badge overrides default on sale badge”. To show WooCommerce default “On Sale” badge when the product has another badge this option has to be unchecked!

    Best Regard,
    Yithemes

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict Woo Standart Badge "Onsale" & YITH WooCommerce Badge Management’ is closed to new replies.