Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout Confirmation page


Guest

Recommended Posts

Posted

Hi all

 

I am using the Zones shipping option which is based on the product weight. Is there a way that in the ckeckout_confirmtation.php page to edit the line that gives the product weight total on the right hand side, I only want the shipping method and the cost to the customer.

 

Below is an example of what is being produced, I would like to loose the (Shipping cost to:- GB : 104.85 )

 

One problem is that the number often does not match the order total is a product is given a discount.

 

Any help greatly appreciated, I have hunted through the code but can't find the relevant bit.

 

<td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td align="right" class="main">Sub-Total:</td>

<td align="right" class="main">£70.32</td>

</tr> <tr>

<td align="right" class="main">Shipping Rate (Shipping cost to:- GB : 104.85 ):</td>

 

<td align="right" class="main">£0.00</td>

</tr> <tr>

<td align="right" class="main">UK Tax:</td>

<td align="right" class="main">£10.47</td>

</tr> <tr>

<td align="right" class="main">Total:</td>

 

<td align="right" class="main"><b>£70.32</b></td>

</tr> </table></td>

Posted

you are talking about manipulating the output from the order total class.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

Thanks Ken

 

I've found the bit of code that produces that bit of table but how do I loose the bit I don't want, here is the code from includes/classes/order_total.php

 

$output_string .= ' <tr>' . "\n" .

' <td align="right" class="main">' . $GLOBALS[$class]->output[$i]['title'] . '</td>' . "\n" .

' <td align="right" class="main">' . $GLOBALS[$class]->output[$i]['text'] . '</td>' . "\n" .

' </tr>';

 

Thanks

Posted

If I try and change any of that code it seems to change all the prices and not just the (Shipping Cost to GB)

Posted

I've sorted it out by editing includes/modules/order_total/ot_shipping and changing

 

line 62 from

 

$this->output[] = array('title' => $order->info['shipping_cost'] . ':',

 

 

to

 

$this->output[] = array('title' => $order->info[''] . 'Shipping Cost' . ':',

 

 

Took me a while but got there in the end.

Archived

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

×
×
  • Create New...