Announcement

Collapse
No announcement yet.

Checkout in Fragment

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

    Checkout in Fragment

    Hi,

    I am trying to have a one page checkout situated inside a section on a fragment.

    we are currently using the teclan one page checkout however we dont want the sliding function we want it so that you can navigate to an "order now" page type in a product ref using normans plugin then click add to cart, the page will then refresh and on the same page you can type in all your details and click buy now and done.

    Any ideas on embedding the checkout?

    Simon
    www.simonstaton.co.uk

    #2
    ok I have almost got it working however it is returning this error:

    It looks like you have used the Browser's Back button to navigate to the checkout page. Please start the ordering process by using the "Checkout" icon. Please wait for your browser to forward you to the next page or click here.


    here is the code I am using:

    Code:
    <form method="post" action="http://www.coding-development.co.uk/cgi-bin/os000001.pl">
    <span class="actregular"><b>Delivery Address</b></span><br><br><span class="actxxsmall">There are no addresses in your address book.</span><input type="CHECKBOX" name="ADBADD"><span class="actxxsmall"><b>Check here to add new address to your address book</b></span><hr><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">
    <table border="0" width="580" cellspacing="2" cellpadding="3" class="checkout">
    <tbody>
    <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/State/Province:</td>
    <td><input type="text" name="DELIVERADDRESS4" size="40" maxlength="200" value=""></td>
    </tr>
    <tr>
    <td><span class="actrequired"> Post Code/Zip 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>
    </tbody>
    </table>
    <br>
    <br>
    <hr size="1" width="580" align="left">
    <span class="actregular"><b>Payment Method</b></span>
    <br>
    <br>
    <table border="0" cellspacing="2" cellpadding="2" class="checkout">
    <tbody>
    <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>
    </tbody>
    </table>
    <hr size="1" width="580" align="left">
    <input type="hidden" name="SEQUENCE" value="2" />
    <table border="0" width="580" cellspacing="0" cellpadding="2">
    <tbody>
    <tr>
    <td width="33%">
    <input type="submit" name="ACTION" value="&lt;Back">
    </td>
    <td width="33%" align="center">
    <input type="submit" name="ACTION" value="Cancel">
    </td>
    <td width="33%" align="right">
    <input type="submit" name="ACTION" value="Next&#62;" />
    </td>
    </tr>
    </tbody>
    </table>
    <br><br> * denotes required fields <span class="actrequired">highlighted.</span>
    <p>Click <a href="javascript:ShowPopUp('http://www.coding-development.co.uk/acatalog/infopopup%2ehtml',650,450);">here</a> to view the Terms and Conditions</p>
    </form>
    www.simonstaton.co.uk

    Comment


      #3
      ok ive got it working, I simply put a hidden iframe in the page that loaded up checkout page 1 so I could go through with checkout page 2. solved however does anyone know how to remove the please reenter your password step?
      www.simonstaton.co.uk

      Comment


        #4
        okay its still not working the order is comming through ok however the delivery address seems to be stuck on using the invoice address instead of allowing you to input an address however I am using an exact copy of the delivery address form. if however you visit the checkout step 2 page before you use the form you can then enter a delivery address any ideas why this might be?
        www.simonstaton.co.uk

        Comment

        Working...
        X