View Single Post
  #1  
Old 03-08-2006, 07:10 PM
 
vixnfox vixnfox is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Adelaide, South Australia
Posts: 82
 

Default xcart_thumbnails ... image_path

OK, wouldnt it be nice if the image you selected appeared in the image_path in the thumbnails table? Its a pain to add products, export CSV and change the image path filename to WHAT YOU SELECTED IN PRODUCT THUMBNAIL TO START WITH !!
Having said that, the actual machinery for creating the "t_productID.jpg" is awfully convoluted.

xcart pieces together the $image_path from $image_path, $type ("T"), and $productid in images_location.php, image_selection.php and product_modify.php
images_location.php:
Code:
case "T": db_query("UPDATE $sql_tbl[thumbnails] SET image_path='".addslashes($file)."', image='' WHERE productid='$v[productid]'"); break;

Can some coding guru out there find out exactly where each bit assigned, so one could change the "T_" bit to "" and the "$image" to what was actually selected from the browse images popup instead of "productid" ?
Perhaps this should be in the logic forum

vixnfox
__________________
V 4.3.1 Live:

Developing on
PHP 5.3.0
MySQL server 5.0.75-community-log
MySQL client 5.1.36
Web server Apache/2.2.11 (Unix) mod_ssl/2.2.11
Windows 7 64bit on a Toshiba Satellite P500

ADELAIDE, SOUTH AUSTRALIA
Reply With Quote