You are here:  » exclude products without images to be displayed

Active Forum Topics

exclude products without images to be displayed

Submitted by paullas on Sun, 2019-12-15 12:40 in

Hi David.

I am back in the swing and working on my sites again.

Cani ask how do i stop products without images being displayed. I still want to import them for the search engines but if someone searches for say DVD player unless the product has an image i do not want it to be displayed.

I have installed the latest version of PT.

Many thanks


Submitted by support on Mon, 2019-12-16 09:51

Hi Paul,

As long as you are using search engine friendly URLs ($config_useRewrite set to TRUE and .htaccess in place) then in search.php look for the following code at line 20:

  $priceWhere = "";

...and REPLACE with:

  $priceWhere = "";
  if (!$rewrite)
    $priceWhere .= " AND image_url <> ''";