FreeosCommerce.com Logo
You are here: Home » Support » Checkout Confirmation Bug Fix

Checkout Confirmation Page Bug Fix

Some stores using STS experience a page break on the checkout_confirmation.php page of the checkout process due tothe placement of a small block of php code. This is a simple fix that requires only one change.

If you are having this issue, you can replace your checkout_confirmation.php file with the fixed version from the 'checkout fix' folder of your template package (if you have an unmodified installation of osCommerce), or you can change the following block of code:

Open checkout_confirmation.php and find this code at around line 111:

<!-- body_text //-->
<td width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<?php
if (isset($$payment->form_action_url)) {
$form_action_url = $$payment->form_action_url;
} else {
$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
}

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>


and replace it with this (which moves the php code above the table code):

<!-- body_text //-->
<td width="100%" valign="top">

<?php

if (isset($$payment->form_action_url)) {
$form_action_url = $$payment->form_action_url;
} else {
$form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
}

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>


Save the file and upload it to your server, replacing the old checkout_confirmation.php file.

What is STS?

The Simple Template System (STS), a free osCommerce add-on, is the template system osCommerce 2.2 should have come with. It makes using templates and editing your store's appearance easy. Read more.

Installation Help

Need help installing STS or an STS template? Contact us with your needs and we'll quote you a reasonable price.

$5 osCommerce templates button

osCommerce templates only $5 for a limited time!

Privacy Policy - Terms and Conditions - Sitemap - Contact Us

© FreeosCommerce.com - 2017

Tucson web designer