Forums / Templates, Stylesheets, Page Layout / Simple change to checkout_shipping

Simple change to checkout_shipping

Locked

Views: 701

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 Apr 2008, 8:03 PM
#1
stevenb avatar

stevenb

New Zenner

Join Date:
Mar 2007
Posts:
57
Plugin Contributions:
0

Simple change to checkout_shipping

Hi all,

In step one of the checkout process, next to the selected shipping preference there is a total for each method. In our case it is always $0.00 because we don't calculate the shipping charges in the cart.

I simply want to make the $0.00 not visible.

I think I have tracked down the file to edit located at \includes\templates\my_templte_set\templates\tpl_checkout_shipping_default using the developers tools.

I'm pretty sure the lines needed to be edited are lines 86-90 as ardvark shows the shows the DIV class as "important forward" .

Here's the code:

<div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></div>
<?php
            } else {
?>
<div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . zen_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></div>
```I don't know PHP so I can't tell what will happen if I comment out the lines or delete them.

Will someone please tell me the proper way to handle this edit?

Thanks in advance for any help.

Steve

Stuff: ZC v1.37 | Linux | mysql v 4.1x | php v 4.4x | phpmyadmin v 2.6x | Default Template

Mods: Login Box v 1.41

28 Apr 2008, 12:31 AM
#2
stevenb avatar

stevenb

New Zenner

Join Date:
Mar 2007
Posts:
57
Plugin Contributions:
0

Re: Simple change to checkout_shipping

Well, after 5 backup copies I managed to calm the jet fighters in my stomach, delete the lines, load the file, and run several test orders.

:D Whata ya know it worked and I didn't break it this time.

Thanks anyway,

Steve

Stuff: ZC v1.37 | Linux | mysql v 4.1x | php v 4.4x | phpmyadmin v 2.6x | Default Template

Mods: Login Box v 1.41