Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

xcart_thumbnails ... image_path

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 03-27-2006, 05:53 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

If you import products via csv and upload the image to the server first, the image name sticks.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-27-2006, 06:11 PM
 
vixnfox vixnfox is offline
 

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

Default

So it does!!!

thanks balinor

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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:38 PM.

   

 
X-Cart forums © 2001-2020