Cart Always Empty

Problems installing or using the NOP Design Free Shopping Cart that do not fit into one of the above categories.

Moderators: Koibito, Stefko, Randy

Cart Always Empty

Postby sdulci » Sat Feb 11, 2012 5:53 pm

Can anyone help me figure out why my cart is always empty?

I've set up two very basic pages on my local machine, an order page, and a cart page. Everything looks to be working on the order page with the form below, but the cart always displays with the "Your Cart is Empty" message in the middle. Maybe the cart page is not finding anything in the cookie?

I've tried just about everything I can think of: post vs get method for the form, submit vs button type of input.

Here is my order form (note I've left out the rest of the page, but the js scripts are called in the head as in the cart page below):

<form method="get" action="cart.html">
<input type="hidden" name="QUANTITY" value="1" />
<input type="hidden" name="PRICE" value="49.95" />
<input type="hidden" name="NAME" value="Producto Numero Uno" />
<input type="hidden" name="ID_NUM" value="Product ID 001" />
<input type="hidden" name="SHIPPING" value="0.00" />
<input type="submit" value="Add to Cart" onClick="AddToCart(this.form)" />
</form>

And here is my cart.html page, essentially verbatim from the example:

<html>
<head>
<title>Cart Page</title>

<SCRIPT SRC="\js\language-en.js"></SCRIPT>
<SCRIPT SRC="\js\nopcart.js">
//=====================================================================||
// NOP Design JavaScript Shopping Cart ||
//---------------------------------------------------------------------||
// Visit NOP Design at http://www.nopdesign.com/freecart ||
//=====================================================================||
</SCRIPT>

</head>

<body>

<!--Shopping Cart ManageCart Begin-->
The items listed below are currently in your shopping cart:
<p>
<FORM ACTION="checkout.html" METHOD="GET" onsubmit="return ValidateCart(this)">
<SCRIPT>
ManageCart();
</SCRIPT>

<INPUT type="SUBMIT" value=" Check Out ">
</FORM>
<!--Shopping Cart ManageCart End -->

</body>

</html>
sdulci
WebMaster
 
Posts: 1
Joined: Sat Feb 11, 2012 5:40 pm

Return to Help: Cart / General

Who is online

Users browsing this forum: No registered users and 1 guest

cron