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

Where is code that creates image file name?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-19-2006, 11:56 AM
 
MarkMan MarkMan is offline
 

Member
  
Join Date: Apr 2006
Posts: 14
 

Default Where is code that creates image file name?

I need to customize the image file name that is created when a product image is added. In which template(s) is this?

Sorry if this has already been asked. I spent some time searching the forums for it.

~thanks~
__________________
www.discfunctional.com
Xcart v4.0.18 gold [unix]
AOM v4.0.18
X-Affiliate v4.0.18
Reply With Quote
  #2  
Old 05-19-2006, 01:02 PM
 
balinor balinor is offline
 

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

Default

If you upload the image to the server first and call it from there, you can keep the image name.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-19-2006, 03:16 PM
 
MarkMan MarkMan is offline
 

Member
  
Join Date: Apr 2006
Posts: 14
 

Default

Interesting, thanks.

I just tried that method and am hitting some issues.

When I add pics by 'file on this server' I am only able to grab from the /xcart/files/<usernames> directories. The problems with this:

a) i cannot upload to my username (??) via an FTP program. I'm not even able to change the CHMOD of that directory.

b) so i upload to another user directory and add an image from there (via the admin panel), but the image does not appear in the store.

I suppose the easiest way would be having the ability to change to the parent directory of /xcart/files (which I cannot do from within the 'add pics' popup) so I can have the new images with all the other images from our supplier (done by import). But then, would the image appear in the store...
__________________
www.discfunctional.com
Xcart v4.0.18 gold [unix]
AOM v4.0.18
X-Affiliate v4.0.18
Reply With Quote
  #4  
Old 05-19-2006, 10:01 PM
 
MarkMan MarkMan is offline
 

Member
  
Join Date: Apr 2006
Posts: 14
 

Default

The solution I found:

change the variable: $files_dir_name
in config.php (located in xcart root directory)

Now the 'image selection' popup will browse to the desired directory under 'File on this server'
__________________
www.discfunctional.com
Xcart v4.0.18 gold [unix]
AOM v4.0.18
X-Affiliate v4.0.18
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 07:30 AM.

   

 
X-Cart forums © 2001-2020