View Single Post
  #343  
Old 07-19-2012, 07:42 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Ability Template v4.4.x

Quote:
I noticed that it only shows the roll over image if there is more than two images and the roll over shows the 2nd image instead of the first image. Is that correct?

No, there only needs to be one detailed image, by default if there's more than one, it displays the first available.

However, if you want to elect a specific detailed image for the popup, then in install steps c / e / g

Replace...

$products[$key]["image_url"] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_D] WHERE id=".$product["productid"]);

With...

$products[$key]["image_url"] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_D] WHERE orderby=0 AND id=".$product["productid"]);

Then in your detailed images, for the particular image you want to use, set the orderby field to zero.
__________________
xcartmods.co.uk
Reply With Quote