Announcement

Collapse
No announcement yet.

Linking to cart problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Linking to cart problems

    I was wondering if anyone new of the direct link to the shopping cart, to enable me to allow users to link to the cart from anywhere in the site?

    As the link I have been using no longer works, as when the link is pressed a NOT FOUND error message is displayed.

    Here is how I am using the direct link:

    <td><a href="cgi-bin/ca000001.pl?ACTION=SHOWCART" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image31','','brochureviewbasket_f2.jpg',1)"><img name="Image31" border="0" src="brochureviewbasket.jpg" width="110" height="30"></a></td>

    For your reference the site is available in preview at:

    http://www.richardwheatley.com/acatlog/index.html
    - GARRY

    #2
    For some reason your script isn't picking up the referring location so you need to use the 'full' version which is:

    http://www.richardwheatley.com/cgi-b....com/acatalog/

    OK. Checking your page again I think the reason is that you're missing the basehref statement at the top of your page. I can only assume that you aren't using actinic to generate the pages as this usually there by default.

    Mike

    PS. Copy/paste the URL is often the best way as it avoids simple typos such as your one above.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      re.

      Hi

      Thanks for your help regarding linking to the cart. The problem I have been working on has been in development off 'n' on for weeks now, and I really appreicate the help. The link you provided worked a treat so thanks for that. You did say I was missing the baseref at the top of the page? Are you saying I am missing something from the page? As I haven't changed the pages in anyway - one day the site was working - then the next the cart wasn't...
      - GARRY

      Comment


        #4
        The basehref may be a red herring here. I'm not sure and it's a year or two since I had to spend some time on this bit so I really can't say.

        Try using your previous link and putting <BASEHREF="http://www.richardwheatley.com/acatalog/"> in the header of your page.

        That may work, but to be honest, trying to think this through I can't really work out the logic of why it does/doesn't work peoperly.

        Mike
        -----------------------------------------

        First Tackle - Fly Fishing and Game Angling

        -----------------------------------------

        Comment


          #5
          You might need a space in between BASE and HREF e.g.

          <BASE HREF="http://www.richardwheatley.com/acatalog/">

          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X