Forums / Templates, Stylesheets, Page Layout / Change shipping module just to be a option with no money value

Change shipping module just to be a option with no money value

Views: 2,399

Results 1 to 4 of 4
4 Apr 2011, 12:06 PM
#1
jakesza avatar

jakesza

New Zenner

Join Date:
Apr 2011
Location:
South Africa
Posts:
14
Plugin Contributions:
0

Change shipping module just to be a option with no money value

Hi all,

I am currently using v1.3.9h of Zen Cart and have a question regarding the default shipping modules.

Our checkout work as follows:

  1. The client picks the item he's interested in and ads it to the cart system
  2. Then he selects the shipping method which in our case is Post Office - Counter 2 Counter, Courier and Store pick up.
  3. Once he selects checkout we receive his purchase request and then reply on his request with an official company quote with the latest price, our terms, contact information and banking details. Upon acceptance he then pays the money in to our bank account via EFT or Direct Bank Deposit.

The problem is we don't have a value in the shipping modules we are using and once the client reaches the part where he needs to pick his preferred shipping method there is a zero amount displayed next to the option, we don't want the client to get a misperception and maybe think that shipping is free.

Is there a way that we can edit the shipping files of that particular module to not display value in the cart area and only be a shipping option.

The files that was renamed where:

  1. flat.php was changed to Post Office - Counter to Counter
  2. item.php was changed to Courier

If you could point me in the right direction as to where I should go and what code I can remove if its that simple. Any advice would be appreciated.
I know the function files for the shipping modules are located in includes/modules/shipping/flat.php or includes/modules/shipping/item.php

Thanks in advance,

Jacques

4 Apr 2011, 1:50 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Change shipping module just to be a option with no money value

You could customize the code, such as on the tpl_checkout_shipping_default.php using something like this would hide the $0.00 ...

<?php
            if ( ($n > 1) || ($n2 > 1) ) {
?>
<div class="important forward"><?php echo ($quotes[$i]['methods'][$j]['cost'] == 0 ? '' : $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 ($quotes[$i]['methods'][$j]['cost'] == 0 ? '' : $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>
<?php
            }
?>

You can adapt that for other pages in the checkout and customize it further if you want Store Pickup to show $0.00 but another module at $0.00 not to show ...

Then place an order using it and check the customer account history for what needs to be adjusted there are well ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Apr 2011, 2:54 PM
#3
jakesza avatar

jakesza

New Zenner

Join Date:
Apr 2011
Location:
South Africa
Posts:
14
Plugin Contributions:
0

Re: Change shipping module just to be a option with no money value

It worked. Just want to say thank you for the speedy reply.

Jacques
:clap:

4 Apr 2011, 4:55 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Change shipping module just to be a option with no money value

Thanks for the update that this helped you to hide the zero values on shipping for the checkout_shipping page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!