I want to hide products having zero price in advance search

WordPress Business Themes Forums Responsive Themes Comparison Theme I want to hide products having zero price in advance search

I want to hide products having zero price in advance search

February 19, 2017
 Satyendra

  • 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.

    February 19, 2017 at 8:59 am

  • 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 ?

    February 19, 2017 at 12:06 pm

  • Satyendra
    Newbie 17 points

    Please Josh , reply

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

    February 20, 2017 at 6:38 pm
  • Josh
    Josh
    Super Guru 13,887 points

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

    February 21, 2017 at 1:52 pm

  • 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

    February 21, 2017 at 3:17 pm
  • Josh
    Josh
    Super Guru 13,887 points

    Thanks for updating Satyendra.Have a great day :)

    February 21, 2017 at 3:23 pm

  • Satyendra
    Newbie 17 points

    Same to you Josh.

    February 21, 2017 at 4:01 pm
Viewing 7 posts - 1 through 7 (of 7 total)

Didn't find what you were after?

Chat with us now

or contact our support team