View Single Post
  #186  
Old 02-08-2013, 06:29 AM
 
PhilJ PhilJ is offline
 

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

Default Re: X-Cart Adapt Template

Quote:
I have thoroughly enjoyed tweaking your template to my liking. However, there is one small thing I think is burried in one of the encrypted files. On the detailed image preview that shows when you hover over a thumbnail, is there any way to make it show just the standard product image, not an actual "detailed" image?

I have attached the source file of /adapt_get_image.php

Option 1) You can use the detailed image 'order by' field to specify which of your detailed images appears on hover, in this case, zero...

Replace...

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

With

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

Option 2) You can have the product image appear instead (not thumbnail)...

Replace...

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

With...

Code:
$products[$key]["image_url"] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_P] WHERE id=".$product["productid"]);
Attached Files
File Type: php adapt_get_image.php (423 Bytes, 2 views)
__________________
xcartmods.co.uk
Reply With Quote