Zubi Cloud sẽ hướng dẫn cách Code thêm giá tiết kiệm, giá Sale và giá bán trong woocommerce.
Hãy xem hình minh họa về phần giá của chúng tôi. woocommerce price amount
Rất đơn giản, hãy thêm đoạn code sau vào trong file functions.php của theme bạn đang dùng
add_filter( 'woocommerce_get_price_html', 'bbloomer_simple_product_price_format', 10, 2 ); function bbloomer_simple_product_price_format( $price, $product ) { if ( $product->is_on_sale() && $product->is_type('simple') ) { $price = sprintf( __( '<div class="web5c-was-now-save"><div class="web5c-was">%1$s</div><div class="web5c-now">%2$s</div><div class="web5c-save">Tiết kiệm: %3$s</div></div>', 'woocommerce' ), wc_price ( $product->get_regular_price() ), wc_price( $product->get_sale_price() ), wc_price( $product->get_regular_price() - $product->get_sale_price() ) ); } return $price; }
bmipas.com
実用性が高く、具体的なアドバイスが役に立ちました。
Narin ve tatlı, aynı zamanda escort sakarya sakarya arkadaş canlısı ve eğlenceyi seven bir insanım. Her zaman gülümseyen ve çok açık fikirli güzel bir hanımefendiyim. Doğal bir vücudum var, inanılmaz deneyim arayışında iseniz o halde ne arzuladığınızı bana iletebilirsiniz.
Escort Sakarya Bayan Birbirinden güzel kadınlarla alakadar ne ararsanız bulabileceğiniz Bayan arkadaş arama sayfası sizin için 24 saat hizmet sunar.
hello!,I really like your writing so a lot! share we keep up a correspondence extra approximately your post on AOL? I need an expert in this house to unravel my problem. May be that is you! Taking a look ahead to see you.