I've been adding some code to Act_ProductLine.html to enable customers to register an interest in products not available.
[FONT=courier new]<td colspan=3 valign="TOP" align="RIGHT" class="addtocartline">
<strong>NETQUOTEVAR:PRODUCTPRICE</strong><span class="actxsmall"> NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY
<!-- if the product is Out of Stock or NYP, we want to be able to record a due... -->
<script language="JavaScript">
<!--
if ( 'NETQUOTEVAR:STOCKLEVEL' == 0)
{
var productname = 'Record due for ' + 'NETQUOTEVAR:PRODUCTNAME';
document.write('<font color="red">UNDER DEVELOPMENT - To be contacted when this item becomes available, fill in your e-mail address and click Submit</font>');
document.write('<form action="/cgi-bin/form_processor.pl method="POST">');
document.write('<input type="hidden" name="admin" value="web@liamjdavison.info">');
document.write('<input type="hidden" name="subject" value="'+productname+'"');
document.write('<input type="hidden" name="redirect" value="">');
document.write('<input type="TEXT" name="01)required-email" value="@">');
document.write('<input type="submit" name="Submit" value="Submit"></form>');
}
-->
</script>
<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS> </span>
NETQUOTEVAR:TEMPLATEENDXML </td>
But when the user clicks submit an error appears:
A General Script Error Occurred
Error: Could not locate the book reference.Press the Browser back button and try again or contact the site owner
This looks like an actinic error because the error page is http://www.luath.co.uk/cgi-bin/ca000000.pl
This is beyond my understanding. What am I doing wrong?
Liam
[FONT=courier new]<td colspan=3 valign="TOP" align="RIGHT" class="addtocartline">
<strong>NETQUOTEVAR:PRODUCTPRICE</strong><span class="actxsmall"> NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY
<!-- if the product is Out of Stock or NYP, we want to be able to record a due... -->
<script language="JavaScript">
<!--
if ( 'NETQUOTEVAR:STOCKLEVEL' == 0)
{
var productname = 'Record due for ' + 'NETQUOTEVAR:PRODUCTNAME';
document.write('<font color="red">UNDER DEVELOPMENT - To be contacted when this item becomes available, fill in your e-mail address and click Submit</font>');
document.write('<form action="/cgi-bin/form_processor.pl method="POST">');
document.write('<input type="hidden" name="admin" value="web@liamjdavison.info">');
document.write('<input type="hidden" name="subject" value="'+productname+'"');
document.write('<input type="hidden" name="redirect" value="">');
document.write('<input type="TEXT" name="01)required-email" value="@">');
document.write('<input type="submit" name="Submit" value="Submit"></form>');
}
-->
</script>
<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS> </span>
NETQUOTEVAR:TEMPLATEENDXML </td>
But when the user clicks submit an error appears:
A General Script Error Occurred
Error: Could not locate the book reference.Press the Browser back button and try again or contact the site owner
This looks like an actinic error because the error page is http://www.luath.co.uk/cgi-bin/ca000000.pl
This is beyond my understanding. What am I doing wrong?
Liam
Comment