Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Woo: условие вывода для товаров со скидкой
add_action( 'woocommerce_after_single_product_summary', 'bbloomer_single_on_sale' );
function bbloomer_single_on_sale() {
if ( $product->is_on_sale() ) {
// do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment