Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Delivery Address from Checkout Confirmation Page and customer email


bpmcclure

Recommended Posts

Solved the customer email problem. In checkout_process.php, I replaced

 

email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .

 

with

 

//email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .

 

Worked great! Now on to the confirmation page. Here is the code that I believe is putting in the Delivery Address. It is around line 137 in checkout_confirmation.php;

 

<?php
 if ($sendto != false) {
?>
           <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td class="main"><?php echo '<b>' . HEADING_DELIVERY_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>
             </tr>

 

If I am barking up the wrong tree, maybe someone smarter than me can give me a hint where to look.

 

 

Thanks! Bruce

Link to comment
Share on other sites

Got it! I changed the code in checkout_confirmation.php shown above to

 

<?php
 if ($sendto != false) {
?>
           <td width="0%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
             <tr>
               <td class="main"><?php //echo '<b>' . HEADING_DELIVERY_ADDRESS . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
             </tr>
             <tr>
               <td class="main"><?php //echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>
             </tr>

 

Then I tweaked the table properties to eliminate the box where shipping address had resided. Learned a lot trying this!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...