ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Store Map and Absolute Paths in header / footer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Store Map and Absolute Paths in header / footer

 Post Reply Post Reply
Author
Message
Conan View Drop Down
Newbie
Newbie


Joined: 21-August-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Conan Quote  Post ReplyReply Direct Link To This Post Topic: Store Map and Absolute Paths in header / footer
    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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 21-August-2009 at 5:15pm
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">
Back to Top
Conan View Drop Down
Newbie
Newbie


Joined: 21-August-2009
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Conan Quote  Post ReplyReply Direct Link To This Post Posted: 21-August-2009 at 5:15pm
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.