Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #746917

    hello

    Can shop page shows one price only instead of the prices range?

    and Can acheived and display from the latest time instead of the oldest time
    like item no.: 2015 xxxx is ahead of item no. 2014xxx?

    thanks advance

    #747256

    add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2);
    Hi,

    as this is variation products, so the actual prices would be different when choose different material.

    so to make it clear

    I want the prices display in shop page and every single product page to be the min prices only such as
    starts at: $0.00
    and font size to be smaller as 18px?

    #749127

    Can any one help me out with this?

    #749152

    Hey!

    We are very sorry for the late response.

    Please add the following filter in the functions.php file:

    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;
    }

    And lease refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    Best regards,
    Ismael

    #749260

    Hi, I will try later

    this code work for single product page and shop product page?

    #749710

    Hey!

    Yes, it will work on both pages. Please let us know if it’s working in your installation.

    Best regards,
    Ismael

    #749970

    Hi, Ismael, thanks very much.

    IT WORKS GREAT!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Can shop page shows one prices only instead of the prices range?’ is closed to new replies.