Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One page checkout


mazza

Recommended Posts

An ugly hack but the only solution I could find.

 

Note: this should not be used if you have more than one shipping or payment module

 

On checkout_shipping.php and checkout_payment.php

 

Replace:

<body>

 

with:

<body onload="document.forms[0].submit()">

 

Additonal suggestions:

 

- Do a check to see if "error_message" is present and deliver optional content for it.

- Use noscript to offer an way to checkout even if visitor has no Javascript enabled.

- Change form fields to hidden.

- Use BTS to deliver very stripped down version of the page. Here is mine:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<base href="http://www.mysite.net" />
</head>
<body onload="document.forms[0].submit()">
<form name="checkout_address" action="checkout_shipping.php" method="post">
 <input type="hidden" name="action" value="process" />
 <input type="hidden" name="shipping" value="table_table" />
 <input type="hidden" name="comments" value="testikommentti" />
 <noscript>
 <h1>Step 1 of 3 - Delivery Information</h1>
 <input name="" type="submit"  value="Continue" />
 </noscript>
</form>
</body>
</html>

 

Submitted for further development until the checkout gets fixed.

"Use no way as way, have no limitation as limitation." - Bruce Lee

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...