eCart Button
My product page seem to be running fine.
But product doesn't add to cart. i added 'ADD TO CART BUTTON' as well.
File attached.
This was my code before adding 'add to cart button' :
<section class="linking">
<form action='#'>
<div class="qtyminus"></div>
<input type='text' name="quantity" value='1' class="qty" />
<div class="qtyplus"></div>
</form>
<a href="#" class="button adc">Add to Cart</a>
<div class="clearfix"></div>
</section>
Then i removed a href add to cart link & added 'add to cart button' now the codes are:
<section class="linking">
<form action='#' name="quantity-cart">
<div class="qtyminus"></div>
<input type='text' name="quantity" value='1' class="qty" />
<div class="qtyplus"></div>
</form>
<form name="eCart1_1_ATC_<?php echo $row_WADAProducts["ProductID"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="eCart1_1_ID_Add" value="<?php echo $row_WADAProducts["ProductID"]; ?>" >
<input type="submit" class="button adc" value="Add to Cart" name="eCart1_1_ATC">
</form>
<div class="clearfix"></div>
</section>