15 Replies Latest reply on Jul 2, 2008 2:31 AM by leemar99

    URL Parameters & Shopping Cart

    leemar99
      I have made a simple shopping cart from several resources, user comes onto the site and picks a category, the url coding is as follows;

      <cfoutput query="catList">
      <a href="products.cfm?CatID=#catList.CatId#">#CatName#</a>
      </cfoutput>

      Which works fine, all the products under the selected Category ID (#CatId#) are displayed. It’s when I click on the “add to cart” or “empty cart” links / button the problem start. It will add the item to the cart as its refreshing the page but the url goes to ../products.cfm so there are no items displayed.

      So my question is how can I add the item to the cart but return to the same pages?

      Thanks,
      Lee