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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
Rank: Member
Joined: 10/19/2005(UTC) Posts: 53
|
Hello,
Thanks Marcus for the quick reply. That solved it.....
Regards, TJ Havens
|
|
|
|
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?
|
|
|
|
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.
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Originally Posted by: "Marcus" 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 |
|
|
|
Rank: Member
Joined: 11/25/2003(UTC) Posts: 370
|
It does include the "/" and "/" in the contains. So with: /WebAppSettings.UrlRewriteProductsPrefix/ Product would work. |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Originally Posted by: "Kim (Kman)" 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 |
|
|
|
Rank: Member
Joined: 11/25/2003(UTC) Posts: 370
|
Yes, I understand and agree. Thinking... wondering what else could be done here. |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Originally Posted by: "Kim (Kman)" 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 |
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Originally Posted by: "Aaron" ...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.aspxEdited 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.