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

Image Import/Customization.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-15-2008, 07:29 AM
 
codyphobia codyphobia is offline
 

Newbie
  
Join Date: Jun 2006
Location: Texas
Posts: 6
 

Wink Image Import/Customization.

In reading through COUNTLESS POST I have learned that sooo many people have problems with image importing and such. Wouldn't it be easier if rather than having image links in the DB and all that messing with the imports, if XCART would just look in a specified folder for productSKU.jpg and tn_productSKU.jpg and use those images. Then if you got a new image, you could just upload it and replace the old one. No importing or fussing.

As I am not a programmer I have NO idea how difficult something like this would be, but for those like me with 20,000 items, importing takes HOURS and its a pain when line 18986 has an error in it and you start all over.

Any of the programmers interested in developing this kind of MOD?
__________________
Thanks,

Cody Riley
www.CodyRiley.com
www.KrazyElephant.com
Reply With Quote
  #2  
Old 11-15-2008, 08:11 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Image Import/Customization.

Great idea, except for one thing, some (most?) people do not use productSKU.jpg and tn_productSKU.jpg as the image names, and your "solution" doesn't even address product detail photos or variant images.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 11-17-2008, 04:34 AM
 
cbostard cbostard is offline
 

Advanced Member
  
Join Date: Dec 2007
Location: USA/ New Jersey
Posts: 47
 

Default Re: Image Import/Customization.

I agree somewhat, it is a pain to import photos into your site, but I feel as my problem would be somewhat solved if you were just able to replace existing photos via, ftp in the in xcart/images/D,C,T files. I change some photos often and to be able to just replace them using filezilla would save alot of time but i dont know the reason for the write protection on them.
__________________
Version 4.3.1
fancy catagories (enabled)
dynamic image generator 4.1(enabled)
tabbed menu buttons
Cdseo Pro (enabled)
anonymous cart mod (enabled )
skin swap "mod doesnt work well for me"
x-magnafier
xcart Gift registry
Reply With Quote
  #4  
Old 06-05-2009, 06:40 AM
 
ascheumann ascheumann is offline
 

Member
  
Join Date: Jan 2009
Posts: 11
 

Default Re: Image Import/Customization.

This is exactly the sort of thing my boss has just assigned me to do. Is there no way to get it to work? I've been searching and searching and I have no clue how to add the pictures to x-cart without importing with CSV.
__________________
X-Cart 4.1.11
X-Cart 4.2.0
Reply With Quote
  #5  
Old 02-09-2010, 01:17 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Re: Image Import/Customization.

that's what I am planning to do right now by using custom php code that searches in a image dir, finding product/thumbnail images (product_sku.jpg and product_thumb_sku.jpg) as well as variants images. The variants' sku follow a specific sku scheme according to the business logic of my client. My client will rename all images according to this scheme and my script will import images for products, thumbnails and variants.
Reply With Quote
  #6  
Old 02-09-2010, 05:40 AM
  rogue's Avatar 
rogue rogue is offline
 

X-Adept
  
Join Date: Apr 2007
Location: Loveland, Ohio
Posts: 770
 

Default Re: Image Import/Customization.

That is the way the thumbnails and images used to work in earlier versions of X-cart. I have 4.0.x and what we do every day is simply FTP the new images to the proper image directory and that's it. In 4.0 you can specify the name of the image file -on the server- in the product import. This can specify any dir/name for image. No checking (that I can tell) is done on the image name at import time. We frequently import image names for non-existant images. Then later FTP the images to the correct directory.

In current versions there are 3 or 4 directories under the 'images' directory like "t" and when an image is imported it is copied to the appropriate one of these 'letter' directories and renamed by xcart.

You could add a new product extra fields 'image2' and 'thumbnail2' or such in which you specify the full path names of the product images on the server (the images you will FTP to those directories).

Then the current code would have to be changed where thumbnails and images are loaded to a page to try and load the image/thumbnail with the 'image2' or 'thumbnail2' name first then if not there try loading the 'normal' image.

Of course in real life it probably won't be easy to do this. And this doesn't take care of detailed images. Also I think that current x-cart genenerates some sort of image cache with resized images - I don't know the details of that and how this would or would not interact with the changes.

Anyway - food for thought.
__________________
Richard Williams
Rogue Wave Limited

Initial Inventory Imports
Daily Inventory Updates
Daily Inventory Reports
Drop Ship Support
Order Export to Shipper/Supplier
Shopping Feeds That Work
Programming for X-Cart

richard@roguewavelimited.com
http://www.roguewavelimited.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:16 PM.

   

 
X-Cart forums © 2001-2020