• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

xotj123
#1 Posted : Thursday, February 10, 2011 12:09:59 PM(UTC)
xotj123

Rank: Member

Joined: 10/19/2005(UTC)
Posts: 53

Hello,

Using BV5, when selecting product images, the image is not showing up in the web page... It shows up in the list of images in the file list, but when I select it, it dosen't show the image in the admin or the front end, any ideas?

Regards,
TJ Havens
xotj123
#2 Posted : Thursday, February 10, 2011 12:30:07 PM(UTC)
xotj123

Rank: Member

Joined: 10/19/2005(UTC)
Posts: 53

Hello,

Ok, I have further information. I can select an image from the /Images/ directory, but if I put the image in the /Images/Products/ folder and select it, it does not show up in the bvadmin or the public side.... Any ideas?

Regards,
TJ Havens
Marcus
#3 Posted : Thursday, February 10, 2011 12:39:00 PM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

The URL rewriter is checking for the /Products prefix in BV 5 to identify product page. Rename the images folder to "/Product" or something else to resolve the issue.
xotj123
#4 Posted : Thursday, February 10, 2011 12:54:46 PM(UTC)
xotj123

Rank: Member

Joined: 10/19/2005(UTC)
Posts: 53

Hello,

Thanks Marcus for the quick reply. That solved it.....

Regards,
TJ Havens
stealthauto3
#5 Posted : Sunday, April 3, 2011 8:38:21 PM(UTC)
stealthauto3

Rank: Member

Joined: 10/29/2008(UTC)
Posts: 66

I am having the same problem, but I can't exactly just "Rename the Products folder to 'Product' " or I will have a change thousands of products' image paths, right?

Is there any other way to fix this problem?
Marcus
#6 Posted : Monday, April 4, 2011 7:35:47 AM(UTC)
Marcus

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 1,786

You can use SQLFindAndReplace.com to update a bunch of data in your database if you need to make that change.
Aaron
#7 Posted : Monday, April 4, 2011 3:01:11 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: "Marcus" Go to Quoted Post
The URL rewriter is checking for the /Products prefix in BV 5 to identify product page. Rename the images folder to "/Product" or something else to resolve the issue.


Isn't this a bug? The UrlRewriter class is checking the URL prefix using a string 'contains' check, meaning any URL that has the defined prefix ("products" in this case) in it will cause a problem, right? Shouldn't it do a 'starts with' check?
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Kman
#8 Posted : Monday, April 4, 2011 3:31:00 PM(UTC)
Kman

Rank: Member

Joined: 11/25/2003(UTC)
Posts: 370

It does include the "/" and "/" in the contains.
So with: /WebAppSettings.UrlRewriteProductsPrefix/ Product would work.
Regards,
Kim(Kman) Rossey
www.toocoolwebs.com
BVSoftware - MerchantTribe Programming/Design, Database Programming and Business Applications
[email protected]
Aaron
#9 Posted : Monday, April 4, 2011 4:05:10 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: "Kim (Kman)" Go to Quoted Post
It does include the "/" and "/" in the contains.
So with: /WebAppSettings.UrlRewriteProductsPrefix/ Product would work.


Sure, but that's still not specific enough, hence the issue being reported in this thread. Renaming the folder of a production site really isn't a great option.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Kman
#10 Posted : Monday, April 4, 2011 4:14:52 PM(UTC)
Kman

Rank: Member

Joined: 11/25/2003(UTC)
Posts: 370

Yes, I understand and agree. Thinking... wondering what else could be done here.
Regards,
Kim(Kman) Rossey
www.toocoolwebs.com
BVSoftware - MerchantTribe Programming/Design, Database Programming and Business Applications
[email protected]
Aaron
#11 Posted : Monday, April 4, 2011 5:05:44 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: "Kim (Kman)" Go to Quoted Post
Yes, I understand and agree. Thinking... wondering what else could be done here.


Other than fixing the bug in the Core, you could create a custom UrlRewriteRule in App_Code that returns true if the URL ends in anything other than .aspx (effectively bypassing the BV URL rewriter).
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Aaron
#12 Posted : Friday, December 2, 2011 3:50:06 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: "Aaron" Go to Quoted Post
...you could create a custom UrlRewriteRule in App_Code that returns true if the URL ends in anything other than .aspx (effectively bypassing the BV URL rewriter).


We created this and include it with our free toolkit (link below):

http://www.bvcommerce.com/forum...s-BVC-5-Toolkit-2-0.aspx

Edited by user Wednesday, June 12, 2013 12:30:06 PM(UTC)  | Reason: Not specified

Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012