View Full Version : Add to cart button not working when Quantity set to Confirmation Page
graememac
21-Jan-2006, 07:02 PM
Hi i have a basic problem in that My "Add to cart button" is not working after I set the Quantity to Quantity on Confirmation Page"
must be something farily obvious - but i cannot figure it out
This is the site
www.ellebury.com
Graeme
wjcampbe
22-Jan-2006, 03:21 PM
You seem to have set 'Quantity always 1'.
I have no problem with any add to cart button on the site, but the quantity on the cart page is not editable.
graememac
22-Jan-2006, 05:24 PM
You seem to have set 'Quantity always 1'.
I have no problem with any add to cart button on the site, but the quantity on the cart page is not editable.
Yes i could not get the Quantity on Confirmation Page to work - the add to card button just did not respond with this setting. Instead i found a fix here which hides the NETQUOTEVAR:QUANITITY varibale and defaults the quantity to 1. this works but its unsatisfactory. (<input type=hidden name="Q_NETQUOTEVAR:PRODUCTREFERENCE" value="1">)
Some products in the as i want customers to set Quantities in the Confirmatino page and not display the quanitity box on the product page -
This seems simple enough - but i cannot see why its not working
wjcampbe
22-Jan-2006, 07:52 PM
Sorry, can't begin to look for a fix, till we can actually see what is wrong. If you can put a section back up with the QTY on Confirmation Page setting, we could have a look and maybe solve the problem.
graememac
23-Jan-2006, 06:56 AM
Sorry, can't begin to look for a fix, till we can actually see what is wrong. If you can put a section back up with the QTY on Confirmation Page setting, we could have a look and maybe solve the problem.
Thanks for getting back - i have now set the site for Quantity on Confirmation page -
Here is the HTML from the Act_ProductLine.html
*******************begin************************
<!-- ProductLine HTML begin -->
<!-- Insert HTML for the top of the individual product -->
<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
NETQUOTEVAR:INCLUDE Act_ProductSeparator.html NETQUOTEVAR:ENDSEPARATOR NETQUOTEVAR:PRODUCTFORMBEGIN <script language=JavaScript>
<!-- (V11)
current = 'NETQUOTEVAR:IMAGEFILE';
iwidth = 'NETQUOTEVAR:IMAGEWIDTH';
iheight = 'NETQUOTEVAR:IMAGEHEIGHT';
scaledown = 'CUSTOMVAR:ICONSCALE';
colcount = 'CUSTOMVAR:ICONSPERLINE';
buttonunder = CUSTOMVAR:BUTTONUNDER;
textunder = CUSTOMVAR:TEXTUNDER;
colpos = 0;
// -->
</script>
<tr>
<td rowspan="2" align="CENTER" valign="TOP">
<div align="left">NETQUOTEVAR:TEMPLATEBEGINXML
NETQUOTEVAR:PRODUCTIMAGE<font size="1">NETQUOTEVAR:PRODUCTLINKTEXT </font>
</div></td>
<td colspan="2" align="LEFT" valign="TOP">
<table width="325" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5"> <a name="NETQUOTEVAR:PRODUCTANCHOR"><span class="actxsmall"><b>NETQUOTEVAR:PRODUCTNAME</b></span></a>
<br> <span class="actxsmall">NETQUOTEVAR:PRODUCTREF NETQUOTEVAR:PRODUCTBEGINLINK
NETQUOTEVAR:PRODUCTENDLINK NETQUOTEVAR:PRICEEXPLANATION </span></td>
</tr>
<tr>
<td colspan="5"><span class="actxsmall">NETQUOTEVAR:PRODUCTDESCRIPTION</span></td>
</tr>
<tr>
<td colspan="5"> <div align="left"><span class="actxsmall">NETQUOTEVAR:PRODUCTPRICE
CUSTOMVAR:RRP</span></div></td>
</tr>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5"><table width="150" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="125"><span class="actxsmall"><b>Number in Stock:</b></span></td>
<td width="25">NETQUOTEVAR:STOCKLEVEL </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="5"><table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150"> </td>
<td width="150"> </td>
</tr>
<tr>
<td colspan="2"><table width="300" border="0" cellspacing="1" cellpadding="0">
<tr>
<td width="115">NETQUOTEVAR:VARIANTLABEL1</td>
<td width="185">NETQUOTEVAR:VARIANTSELECTOR1</td>
</tr>
<tr>
<td>NETQUOTEVAR:VARIANTLABEL2</td>
<td>NETQUOTEVAR:VARIANTSELECTOR2</td>
</tr>
<tr>
<td>NETQUOTEVAR:VARIANTLABEL3</td>
<td>NETQUOTEVAR:VARIANTSELECTOR3</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td width="25" height="25">NETQUOTEVAR:EXTINFOBUTTON </td>
<td width="90"><div align="left">NETQUOTEVAR:EXTINFOLINK</div></td>
<td width="35"> <div align="right">
<p> </p>
<p> </p>
</div></td>
<td width="70">NETQUOTEVAR:PRODUCTQUANTITY <!-- <input type=hidden name="Q_NETQUOTEVAR:PRODUCTREFERENCE" value="1">-->
</td>
<td width="100"><div align="right">NETQUOTEVAR:VARIANTADDTOCARTBUTTON
</div></td>
</tr>
</table>
<span class="actxsmall">NETQUOTEVAR:DISCOUNTINFO </span>
<span class="actxsmall">NETQUOTEVAR:OTHERINFOPROMPT </span>
<span class="actxsmall">NETQUOTEVAR:DATEPROMPT </span>
</td>
</tr>
<tr>
<td colspan="2" align="LEFT"><span class="actxsmall">
<strong>NETQUOTEVAR:CARTERRORXML
</span>
NETQUOTEVAR:TEMPLATEENDXML </td>
</tr>
NETQUOTEVAR:PRODUCTFORMEND
NETQUOTEVAR:NEXT
<!-- -->
<!--Insert HTML for the bottom of the individual product -->
<!-- ProductLine HTML end -->
************END****************
Graeme
wjcampbe
23-Jan-2006, 08:40 AM
Have a look at your Act_Cartbutton.html template - it should read INPUT TYPE=SUBMIT
Your ProductLine template looks OK - but the code being produced has no function.
When I try the Qty on Confirmation page the add to cart code produced is
<Actinic:ACTIONS><P><INPUT TYPE=SUBMIT VALUE="Add to cart" NAME="332"></P></Actinic:ACTIONS>
Your page shows INPUT TYPE="IMAGE" SRC="add-to-cart.gif" NAME="_Exte1 black" WIDTH="68" HEIGHT="25" BORDER="0" ALT="Add To Cart">
graememac
23-Jan-2006, 10:43 AM
i do seem to have INPUT TYPE=SUBMIT on this page - have a look:
<!-- CartButton HTML begin -->
<!-- This template is used for the add to cart button. -->
<P><INPUT TYPE=SUBMIT VALUE="NETQUOTEVAR:BUTTONLABEL" NAME="NETQUOTEVAR:BUTTONNAME"></P>
<!-- This template is used for the add to cart button. -->
<!-- CartButton HTML end -->
It is strange as, when set to Quantity on Product page - everything is fine!!
Any ideas as to why when changing from Quantity on Product page to Quantity on confirmation page disables the add to cart button ??
Graeme
wjcampbe
23-Jan-2006, 11:00 AM
Can you check if 'can be ordered online' is ticked on the general tab of the products?
graememac
23-Jan-2006, 12:06 PM
yes that is checked
wjcampbe
23-Jan-2006, 02:35 PM
You need to add the Actinic Actions into the template where you have the Add to cart button, so that it becomes
<td width="100"><div align="right"><Actinic:ACTIONS>NETQUOTEVAR:VARIANTADDTOCARTBUTTON</Actinic:A
CTIONS>
</div></td>
graememac
23-Jan-2006, 04:19 PM
OK - thanks but still not working. Let me tell you what I have configured on Actinic that i do not normally -
1, stock monitoring is on for evey product with a default of
Estimated stock = 1
Warn if below = 0
Suspend orders if below = 0
2 on each product >Details tab I have set the Minimun Quantity = 1 and Maximum Quanitity to = 1
3 Set stock monitoring on in Business Settings > Options
any ideas here
wjcampbe
23-Jan-2006, 07:16 PM
Those settings are confusing. We are trying to get to a page where the user can set/change the quantity with restrictions in place which deny the customer any quantity option.
Try est stock = 5 warn = 2 suspend = 1
min 1 max 3
Lets see if we can get to the choice page when there is a choice to be made.
If what you really want is qty always 1, why not set that and either leave qty on product page or use the qty in cart shopping mode?
graememac
23-Jan-2006, 08:15 PM
hi this is a strange one - still not working - i have tempoarily set the Act_ProductLine.htm to:
<input type=hidden name="Q_NETQUOTEVAR:PRODUCTREFERENCE" value="1">
and set Quantity on Product page
this is exactly what i want - it seem i am missing something very elementary here - but just cannot figure it out
Graeme
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.