This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: I want to hide prices from specific product categories on search.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support I want to hide prices from specific product categories on search. Reply To: I want to hide prices from specific product categories on search.

#47707
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

It’s usually 2 hours when I’m at the office. Unfortunately I’m a bit ill, so I had to take a day off.

The problem with your pseudo-code is, that there is no such thing as “if” statements in the advanced fields: {if hide_price == false && _price} – Price: {_price}{/if}
It’s a complicated story, but for that to work the advanced fields should be coded to be Turing complete (or at least partially), which is is just beyond it’s design and it wouldn’t make too much sense as the field can be modified programmatically.

For these more advanced uses I suggest using the asp_results hook instead, as with that you can do whatever you want to any of the content fields via code snippets.

On the search page(when you click enter) I only see 3 columns when I selected 6 within the settings. How do I go about rectifying this? I have added a screenshot for your perusal.
The search results page is not controlled by the plugin, it’s an archive page and the layout is usually controlled by the theme or a page builder (if you have one). Usually there are options for the search archive in the theme settings where you can change the overall layout.