Announcement

Collapse
No announcement yet.

One Page Checkout Help!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    One Page Checkout Help!

    We had a one page checkout - created by a previous employee - in version 9 on one of our websites.

    We just upgraded the site to version 12.0.6 and this no longer works!

    The normal cart works - this is on www.gardengames.com and as it is a trade site requires no payment, just user accounts for customers to place orders.

    Whe you add an item to cart you get the error:

    "Genreal Script Error!
    There is no valid input parameters for the script! Check the referencing HTML code!"

    The One Page Checkout is just a fragment with its own layout code in the Library.

    The code looks like this...

    <table width="700" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="185" valign="top">
    <div style="background-color: #eeeeee; width: 180px; height:95px; border: 1px solid #d1d1d1; padding-left: 5px; padding-top: 5px;">
    <span class="actregular"><b>Add Item</b></span><br><br>
    <form name="customform" method="post"
    action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />"
    onsubmit="return true">
    <input type="hidden" name="PAGE" value="CUSTOM">
    Ref:<input onblur="this.value=this.value.toUpperCase()" type="text" size="5" name="PRODREF"><br>
    Qty:<input type="text" size="5" name="PRODQTY" value="1">&nbsp;
    <input type=submit value="Add Item" >
    </form>
    </div>
    </td>
    <td width="515" valign="top">
    <div style="background-color: #eeeeee; width: 495px; margin-left: 10px; border: 1px solid #d1d1d1; padding-left: 5px; padding-top: 5px;">
    <span class="actregular"><b>Shopping Cart</b></span><br><br>

    <table width='100%' border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign='top' width='65'><b>Quantity</b></td>
    <td width="335"><b>Product</b></td>
    <td width="100" valign='top'><b>Price</b></td></tr>
    </table>
    <script type="text/javascript">document.write(getMiniCart());</script><br><br>
    <a href="http://www.gardengames.com/cgi-bin/ca000001.pl?ACTION=SHOWCART">Edit Cart</a><br><br>
    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2"><iframe src="http://www.gardengames.com/cgi-bin/os000001.pl?ACTION=Start" height="0" width="0"></iframe>

    <form method="post" action="http://www.gardengames.com/cgi-bin/os000001.pl"><input type="hidden" name="RANDOM" value="0.711563737670989" /> <INPUT TYPE=HIDDEN NAME=REFPAGE VALUE="http://www.gardengames.com/cgi-bin/bb000001.pl?PRODUCTPAGE=One_Page_Checkout.html">
    <div style="background-color: #eeeeee; width: 695px; margin-top: 10px; border: 1px solid #d1d1d1; padding-left: 5px; padding-top: 5px;"><span class="actregular"><b>Delivery Address</b></span><br /><br /><INPUT TYPE=HIDDEN NAME=INVOICERESIDENTIAL VALUE='0'>
    <INPUT TYPE=HIDDEN NAME=INVOICEADDRESS4 VALUE=''>
    <INPUT TYPE=HIDDEN NAME=DELIVERY_COUNTRY_CODE VALUE='UK'>
    <INPUT TYPE=HIDDEN NAME=INVOICEPOSTALCODE VALUE='ox13 5pd'>
    <INPUT TYPE=HIDDEN NAME=INVOICE_COUNTRY_CODE VALUE='UK'>
    <INPUT TYPE=HIDDEN NAME=INVOICE_REGION_CODE VALUE='UndefinedRegion'><INPUT NAME=ADDRESSSELECT VALUE=0 CHECKED type="hidden"><table border="0" width="580" cellspacing="2" cellpadding="3"><tr><td><span class="actrequired"> Name: *</span></td><td><input type="text" name="DELIVERNAME" size="20" maxlength="40" value="" /></td></tr><tr><td><span class="actrequired"> Address Line 1: *</span></td><td><input type="text" name="DELIVERADDRESS1" size="40" maxlength="200" value="" /></td></tr><tr><td> Address Line 2:</td><td><input type="text" name="DELIVERADDRESS2" size="40" maxlength="200" value="" /></td></tr><tr><td><span class="actrequired"> City/Town: *</span></td><td><input type="text" name="DELIVERADDRESS3" size="40" maxlength="200" value="" /></td></tr><tr><td> County:</td><td><input type="text" name="DELIVERADDRESS4" size="40" maxlength="200" value="" /></td></tr><tr><td><span class="actrequired"> Post Code: *</span></td><td><input type="text" name="DELIVERPOSTALCODE" size="10" maxlength="50" value="" /> </td></tr> <tr><td> Country:</td><td><input type="text" name="DELIVERCOUNTRY" size="20" maxlength="75" value="" /></td></tr><tr><td><span class="actrequired"> Phone Number: *</span></td><td><input type="text" name="DELIVERPHONE" size="20" maxlength="25" value="" /></td></tr></table></div>

    <div style="background-color: #eeeeee; width: 695px; margin-top: 10px; border: 1px solid #d1d1d1; padding-left: 5px; padding-top: 5px;">
    <span class="actregular"><b>Payment Method</b></span><br /><br /> <table border="0" cellspacing="2" cellpadding="2" class="checkout"><tr><td><span class="actrequired"> Payment Method: *</span></td><td><INPUT TYPE='HIDDEN' NAME='PAYMENTMETHOD' VALUE='10002'>Invoice With Order</td></tr><tr><td><span class="actrequired"> Purchase Order Number: *</span></td><td><input type="text" name="PAYMENTPONO" size="15" maxlength="255" value=""></td></tr></table></div>

    <input type="hidden" name="SEQUENCE" value="2" /><table border="0" width="698" cellspacing="0" cellpadding="2"><tr>
    <td width="33%">&nbsp;</td><td width="33%" align="center">&nbsp;</td><td width="33%" align="right"><input type="submit" name="ACTION" value="Next&gt;" />
    </td></tr></table><br /><br /> * denotes required fields <span class="actrequired">highlighted.</span><br /><br /></form></td>
    </tr>
    </table>

    #2
    Extra Note...

    This one page checkout is just a way of customers using codes to add items rather than clicking through to products to add to cart....

    feel free to use test log in Shannon and password web if anyone wants tosee how it works (we have re-uploaded old version 9 site for now)

    Any help with this would be greatly appreciated!

    Comment

    Working...
    X