Print Page | Close Window

Navigation problems

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Getting Started
Forum Description: Installing, activating, and getting started with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2712
Printed Date: 14-May-2024 at 2:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Navigation problems
Posted By: cs
Subject: Navigation problems
Date Posted: 04-May-2009 at 11:11pm
I am just installing Product Cart for the first time and integrating with the design of my current website.  The process looked pretty straight forward, but I've already run into a problem.  The links are tied to the product cart directory, rather than going to the main web two levels higher.  See what I mean at this URL - http://www.creationsensation.net/productcart/pc/home.asp

Also, my pictures and the javascript in the top border are not running.  I am assuming that the problems are all tied to the same thing.  I have checked all the links in the header. asp and footer.asp and tried adding ../../ and I've also tried changing the links to direct www.etc ... , but nothing has corrected the problem yet.

I would appreciate any help.

Thanks



Replies:
Posted By: ProductCart
Date Posted: 05-May-2009 at 3:00am
Hi cs,

You will need to open whatever file contains the navigation links on the right side and change the "HREF" statements so that they use absolute links, instead of relative links. For example:
<a class="menulinks" href="carlasblog.htm">carla's blog</a>

... should become:
<a class="menulinks" href="http://www.creationsensation.net/carlasblog.htm">carla's blog</a>

This will take care of the problem.


-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: Hamish
Date Posted: 05-May-2009 at 4:36am
Hi CS,
   The menu you are using is being generated via a bit of Javascript, although I see no reason/benefit for it in this case as the javascript just writes out some standard HTML and does nothing that would require the use of javascript. 

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 05-May-2009 at 9:46am
I changed the "HREF" statements in the javascript to absolute links, and they still go to /ProductCart/pc/carlasblog.htm .   Why?  Where is the additional information coming from?

And yes, I realize that all three problems, the navigation, the missing pics, and the missing logo are all generated by javascript.  I guess I could dump the javascript, but I like the look of the logo it generates, and if I can get one problem fixed, I can probably get all three to work properly.

Any other suggestions?


Posted By: Hamish
Date Posted: 05-May-2009 at 10:38am
Hi,
   Do you have more than one copy of the menu.js javascript? I checked the one in use : http://www.creationsensation.net/menu.js - http://www.creationsensation.net/menu.js and it is unchanged from when I viewed it earlier and is using relative links. e.g. :-

document.write('</td></tr><tr><td class="menu">');
document.write('<a href="awesomewalks.htm" class="menulinks">awesome walks</a><br>');


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 05-May-2009 at 11:24am
No, there is only one menu.js, and you have a good eye.  I changed it back after I tried it.  But I will be glad to change back to absolute links and let you take a look. Maybe I did something wrong.  Give me a few minutes. I'll post back here when I'm finished.


Posted By: cs
Date Posted: 05-May-2009 at 11:38am
Okay, now take a look at menu.js and menu_lower.js and menu_pictures.js.  You should see the changed I made to the links.

Thanks!


Posted By: Hamish
Date Posted: 05-May-2009 at 12:11pm
Hi CS,
     It's still the same when I look from here - you have remembered to upload them ? :-)
http://www.creationsensation.net/menu.js - http://www.creationsensation.net/menu.js




-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 05-May-2009 at 12:19pm
uh. . . yeah, I did upload them . .  to the wrong directory!  <blush>  Thanks for the prod.  I did it again, and that seems to have fixed the links.  And I bet I can figure out how to fix the pictures and logo as well.  If I get stuck again, I'll be back.

Thanks!


Posted By: Hamish
Date Posted: 05-May-2009 at 12:21pm
No Problem - we've all made that mistake. good luck with the rest of the integration.

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 11-May-2009 at 8:47am
I still have some navigation problems that I need counsel about.  The deal - my main website, a dot com is still running on another server.  So I am building the new cart on our dot net.  And to complicate it even more, the first few days I was working, the dot net had not propogated from a dns change and I was working on a temporary url that was just a combination of some odd characters.  Now, some of the links are broken because some are looking for the dot com and others the dot net and same pages are looking for the odd string of stuff that I first started with. 

Will all these links sort themselves out when the dot com is transferred to point to product cart rather than my old cart (on another server)?  Do I need to change something within the program?  Do I need to do a reinstall?  If I do, will I loose the products that I have already entered?  I am confused about the whole navigation issue.

You can see the problems at www.creationsensation/productcart/pc/home.asp  Notice column on the right has entirely different links than the column on the left.




Posted By: cs
Date Posted: 11-May-2009 at 8:50am
lets try that again - www.creationsensation.net/productcart/pc/home.asp


Posted By: Hamish
Date Posted: 11-May-2009 at 10:29am
Hi,
    The navigation menu on the left (with the "+" icons) has, almost certainly, been generated from the admin pages using "Settings > Generate Navigation".  This uses scStoreURL from the includes/storeconstants.asp file.  It seems that scStoreURL is set to www.creationsensation.com instead of www.creationsensation.net.
Try changing that and then re-generating your navigation.


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 11-May-2009 at 11:24am
Yes, that fixed the problem!  The navigation now works properly.  I assume that when I transfer the dns from the dot com to point to this new cart, I can just change the asp file back to creationsensation.com, generate new links and everything will be ready to go on the final product.  Is that right?


Posted By: Hamish
Date Posted: 11-May-2009 at 11:26am
Hi,
  Yes, that's correct, but don't forget about the other links on your home page, which will also need to change.


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 11-May-2009 at 11:28am
How will I change those?  I guess I still do not understand WHERE the information is coming from. Another .asp?


Posted By: cs
Date Posted: 11-May-2009 at 11:30am
And also, while I am showing my lack of understanding, why is the information all over the place instead of lined up nicely?  Is it a problem with tables in the html? 


Posted By: Hamish
Date Posted: 11-May-2009 at 11:46am
Hi, your missing a CSS file - pcHeaderFooter.css, it's in the  pc folder.

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Hamish
Date Posted: 11-May-2009 at 12:00pm
Hi,
   I forgot to say about the other links, The "Browse by Price" will be fine, as should the others. The links I was referring to are the ones top right next to the header image.


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 11-May-2009 at 12:09pm
I ftped in and looked in the pc file, and there is a folder named pcHeaderFooter.css there.  Maybe it is corrupted and I need to upload it again?


Posted By: Hamish
Date Posted: 11-May-2009 at 12:11pm
Hi,
   You just need to add it into your header.asp file, where the other CSS files are linked to.
Of course, your completely free to edit the contents of the file, or create your own custom CSS file, but it's a good starting point.


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: cs
Date Posted: 11-May-2009 at 12:22pm
I added this line to header.asp

<link type="text/css" rel="stylesheet" href="pcheaderfooter.css" />

and it looks better now.  Thanks!  It is amazing how much difference a single line makes.

Now, I just need to add a few other odds and ends, like a search box, tidy things up a bit, and I'll be fixed up and ready to go.

Will you take a look and make any suggestions? 


Posted By: cs
Date Posted: 11-May-2009 at 12:26pm
On second thought, it doesn't look right anymore because there are two column in the center of the page and all the info is scrunched up into the right hand column.  Why?


Posted By: Hamish
Date Posted: 11-May-2009 at 12:34pm
Hi,
    See : http://wiki.earlyimpact.com/how_to - wiki.earlyimpact.com/how_to - There's a link there to several things including how to add a search box.
For styling the CSS I like to use Firefox with the Web Developer add-on, which allows you to edit the CSS "on the fly" and then save the amended CSS files, ready to upload to your site and become the live CSS.   https://addons.mozilla.org/en-US/firefox/addon/60 - https://addons.mozilla.org/en-US/firefox/addon/60


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Hamish
Date Posted: 11-May-2009 at 12:41pm
Hi,
    It looks like there's a mistake in your header / footer.

        <td class="pcColumnSpacer"></td>
        <td id="pcCenter">


appears twice.




-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net