I want to hide products having zero price in advance search


  • Satyendra
    Newbie
     
    17 points

    Hello Josh,

    I need one code which can hide products having zero price ( out of stocks ) in advance search result.

    please help.



    Satyendra
    Newbie
     
    17 points

    Price (low-high)[orderby=price&order=asc]
    Price (high-low)[orderby=price&order=desc]

    Is it possible to add some code in above lines to hide products with zero prices while using above filters in search result ?



    Satyendra
    Newbie
     
    17 points

    Please Josh , reply

    Otherwise can we place zero priced product in last while sorting in low to high price order.


    Josh
    Josh
    Super Guru
     
    13,887 points

    Hello Satyendra,
    Which theme are you using please.The comparison theme does not have a stock feature



    Satyendra
    Newbie
     
    17 points

    Hello Josh,

    Thanks for your reply.

    I am using Comparison Theme. problem is solved with the help of one of my friend.

    Now zero priced products will not appear while sorting products in ascending order.

    He has done changes in search-result.php


    Josh
    Josh
    Super Guru
     
    13,887 points

    Thanks for updating Satyendra.Have a great day :)



    Satyendra
    Newbie
     
    17 points

    Same to you Josh.


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.