Thêm nút Liên hệ khi sản phẩm không có Giá

// Thêm nút Hotline hoặc Liên hệ khi sản phẩm không có Giá
function realdev_wc_custom_get_price_html( $price, $product ) {
if ( $product->get_price() == 0 || $product->get_price() == '' ) {
$price = '<span class="amount">' . __( 'Liên hệ', 'woocommerce' ) . '</span>';
}
return $price;
}
add_filter( 'woocommerce_get_price_html', 'realdev_wc_custom_get_price_html', 10, 2 );

Xem thêm:
- VegasHero app – πώς να παίξετε στο online casino μέσω κινητού
- Il Futuro delle Valutazioni dell’Aviazione Privata: Innovazioni e Prospettive
- Strategien und Besonderheiten der Bonusrunden in Online-Slots
- Innovative Strategies in Online Slot Gaming: Maximising Player Engagement with Themed Free Spins
- Framtidens digitala spelupplevelser: En djupdykning i moderna casinospel