Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / What's the best way to duplicate the "storepickup" shipping module?

What's the best way to duplicate the "storepickup" shipping module?

Locked

Started by organicplanet on 6 Apr 2009, 3:06 AM · Views: 2,904

Results 21 to 26 of 26
This thread is locked. New replies are disabled.
8 Apr 2009, 6:37 PM
#21
ajeh avatar

ajeh

Oba-san

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

Post #21 by ajeh

Sorry ... the correct filename is:
tpl_checkout_shipping_default.php

silly .. silly ... me ... :lookaroun

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!

8 Apr 2009, 8:16 PM
#22
ajeh avatar

ajeh

Oba-san

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

Post #22 by ajeh

You have typos in your code ... :eek:

In the file tpl_checkout_shipping_default.php you need to use:

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

In the ot_shipping.php you need to be using:

    function process() {
      global $order, $currencies;

        $this->output[] = array('title' => $order->info['shipping_method'] . ':',
                                'text' => ($order->info['shipping_cost'] == 0.00 ? 'I am Free!' : $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value'])),
                                'value' => $order->info['shipping_cost']);
    }

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!

9 Apr 2009, 12:16 AM
#23
organicplanet avatar

organicplanet

New Zenner

Join Date:
Dec 2005
Posts:
58
Plugin Contributions:
0

Post #23 by organicplanet

That was it! Thank you so much Linda for all your help, and most of all for all your patience! You Rock!

9 Apr 2009, 3:44 AM
#24
ajeh avatar

ajeh

Oba-san

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

Post #24 by ajeh

Thanks for the update that you got this working ... :smile:

Remember us when you are rich and famous!! :cool:

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!

9 Apr 2009, 5:01 AM
#25
organicplanet avatar

organicplanet

New Zenner

Join Date:
Dec 2005
Posts:
58
Plugin Contributions:
0

Post #25 by organicplanet

I do have one more question tho...

Why is it not wise to make file changes on the control panel or using word?

I can see how word may change formats or some sort of syntax,
but I don't quiet understand why making changes on the control panel is not a good thing to do.

Just wondering.

9 Apr 2009, 4:33 PM
#26
ajeh avatar

ajeh

Oba-san

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

Post #26 by ajeh

Often times, the files become corrupted ... it is best to use a good TEXT editor and FTP the files to your site ...

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!