X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Where is code that creates image file name? (https://forum.x-cart.com/showthread.php?t=21919)

MarkMan 05-19-2006 11:56 AM

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~

balinor 05-19-2006 01:02 PM

If you upload the image to the server first and call it from there, you can keep the image name.

MarkMan 05-19-2006 03:16 PM

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...

MarkMan 05-19-2006 10:01 PM

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'


All times are GMT -8. The time now is 06:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.