Um. Ok, please remove the custom css which hides the upper price. Instead we can hide the variable price range for variable products only with this snippet:
// don't show variable price range under title
add_filter( 'woocommerce_variable_sale_price_html', 'hide_variable_prices', PHP_INT_MAX, 2 );
add_filter( 'woocommerce_variable_price_html', 'hide_variable_prices', PHP_INT_MAX, 2 );
function hide_variable_prices() {retu '';}
We still need to force the lower price to display for variable products where the price is the same for all variations:
// show variation price under add-to-cart, even if all variations are the same price
add_filter('woocommerce_show_variation_price', function() {retu true;});
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 221 تاريخ : پنجشنبه 10 تير 1395 ساعت: 9:12