Default Image Path -- where to change?

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Default Image Path -- where to change?

Post by sfeher » Tue May 17, 2011 8:54 am

OK -- I thought this might be easy, but I've combed through things (including the forums here) and I don't see anyone asking where/how to change the default image path for the image uploading.

As a default, the images are uploading into ~/Assets/ProductImages/, however, my structure would be better if images could be added into the following: ~/Assets/Images/Products/

I figured this would be some simple variable or an option within web.config, but (sigh) I don't see it anywhere. Am I blind? Has anyone else needed to change this default target location for the image uploader? Is there a global variable for this?

BTW -- AbleCommerce 7.0.6 build 14312

many thanks!
Steve

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Default Image Path -- where to change?

Post by plugables » Wed May 18, 2011 5:18 am

Unfortunately this option is not configurable and default path info is hard coded in CommerceBuilder.Utility.FileHelper class.

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Default Image Path -- where to change?

Post by sfeher » Wed May 18, 2011 6:13 am

OK ... I suspected as much after striking out so quickly.
Thanks for the update!

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Default Image Path -- where to change?

Post by jmestep » Thu May 19, 2011 4:13 am

I had looked at this in the past for a client who had two sites but wanted to share images or wanted to host them somewhere else.
I think that if you find all the instances similar to
else _Product.ImageUrl = FileHelper.BaseImageUrlPath + safeFileName;
you can use a different path in place of FileHelper.BaseImageUrlPath
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: Default Image Path -- where to change?

Post by sfeher » Thu May 19, 2011 5:43 am

Hi Judy --
Yes, I thought about that too... certainly one option. Was hoping that I wouldn't have to edit the hard code, though.

Thanks!

Post Reply