![]() |
Store Map and Absolute Paths in header / footer |
Post Reply ![]() |
Author | |
Conan ![]() Newbie ![]() Joined: 21-August-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 21-August-2009 at 4:47pm |
I am having an issue with my custom header / footer template elements during generation of the HTML store map.
all the root relative paths that are coded in my header / footer are being rewritten incorrectly... for example a link to an image coded as "/images/imagename.jpg" is being transformed into http://dev.wallpaperforwindows.com/pc//images/template_07.jpg instead of http://dev.wallpaperforwindows.com/images/template_07.jpg notice the incorrect /pc// added into each of them at first no links were being generated correctly but i have reviewed the genstoremapA.asp code and made changes that fixed all the category / product links (they were getting a //pc//pc/ added into them) my store resides at in the root folder of the server (/pc/) without the /productcart/ containing folder and so far everything else works perfectly. the broken store map is viewable at http://dev.wallpaperforwindows.com/pc/catalog/StoreMap.html I read about the option of cutting and pasting the HTML generated by the store map feature without header / footer into another page template, but that would be a last resort. I think if I could get the store map to not do any modification to the header/footer paths it would work right but I haven't been able to figure out exactly what part is rewriting the header footer paths. (i think its the code down around line 420 in genstoremapa.asp, but dont know how to change that) |
|
http://dev.wallpaperforwindows.com
Product Cart 3.51 apparel add-on seo URL modifications |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
The header/footer in the PC folder must reference images that are AT or BELOW the PC folder. Referencing the image relative to the root won't work.
If you have any images in a root folder, you need to move or copy the images to the /pc/images (or better yet, something such as /pc/images/site-graphics/) folder. Then, reference the images without a leading /.
For example, the image on your left nav needs to be referenced as:
<img src="catalog/images/btn_expand.png">
These would also work:
<img src="images/btn_expand.png">
<img src="images/site-graphics/btn_expand.png"> This will not work as you have discovered:
<img src="/pc/catalog/images/btn_expand.png"> |
|
![]() |
|
Conan ![]() Newbie ![]() Joined: 21-August-2009 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I fixed it. go me.
for some reason it is putting two <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> in the head but i can handle that. |
|
http://dev.wallpaperforwindows.com
Product Cart 3.51 apparel add-on seo URL modifications |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |