Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #812128

    Hi,
    I want to show the min prices only both in shop page and single product page via below in functions.php
    add_filter(‘woocommerce_variable_price_html’, ‘avf_custom_variation_price’, 10, 2);
    function avf_custom_variation_price( $price, $product ) {
    $price = ”;
    $price .= woocommerce_price($product->get_price());
    return $price;
    }
    normally the product grid in other page (such as home page) will display automatically same as shop page and single product page, but now it didn’t change
    (how to make it show min prices only also in product grid)

    Another problem is the font style is not the same the shop page.
    (how to make it same as shop page)

    and it was all uppercase, though I managed to make it lowercase by CSS

    But why it can’t keep the same as shop page automatically, before the updating, it worked perfectly.

    #812266

    Hey YongyanLi,

    Could you please give us a link to your website, we need more context to be able to help you.
    Best regards,
    Victoria

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.