Forums / Built-in Shipping and Payment Modules / One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Locked

Views: 2,721

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
11 Feb 2009, 6:21 PM
#1
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

So I'm using the table rates under the shipping options in Zen Cart.

I have my rate tables in correctly.

25 & under- $5.99

25.01 - 50.00- &7.99

50.01 - 100.00- $10.99

100.01 - 150.00- $13.99

150.01 - 200.00- $14.99

200.01 +over- $16.99

I just need to be able to add an option 2nd day air +$8.00 and Next Day +17.00 not sure on how to go about it. Any help would be appreciated.

11 Feb 2009, 7:26 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

You could clone the table.php to tablenextday.php and tablesecondday.php and alter the rates ...

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!

11 Feb 2009, 7:27 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Doing a search on:
clone table
clone flat

should give you several posts on the details to doing this ...

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!

11 Feb 2009, 8:41 PM
#4
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Thanks! I was afraid that was the answer. I had looked at that earlier but couldn't find the specifics. I'll just dig deeper :)

11 Feb 2009, 8:49 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

copy the files:
/includes/modules/shipping/table.php
/includes/languages/english/modules/shipping/table.php

to the files:
/includes/modules/shipping/tablenextday.php
/includes/languages/english/modules/shipping/tablenextday.php

Case Sensative ... change all occurances of:
MODULE_SHIPPING_TABLE_

to read:
MODULE_SHIPPING_TABLENEXTDAY_

Case Sensative ... change all occurances of:
table

to read:
tablenextday

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!

12 Feb 2009, 5:32 PM
#6
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Instead of just searching for table I searched for table.php

If I do a find and replace for just table it looks like I could change things I wouldn't want to change such as where table exists in the following snippet

$table_cost = split("[:,]" , MODULE_SHIPPING_TABLE2NDDAY_COST);
$size = sizeof($table_cost);
for ($i=0, $n=$size; $i<$n; $i+=2) {
if (round($order_total,9) <= $table_cost[$i]) {
if (strstr($table_cost[$i+1], '%')) {
$shipping = ($table_cost[$i+1]/100) * $order_total_amount;
} else {
$shipping = $table_cost[$i+1];

12 Feb 2009, 6:53 PM
#7
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

I have updated all files appropriately

Only the nextdayair table option shows up under the modules->shipping list

I have double checked the changes I made. Not sure where I went wrong that both cloned tables aren't showing.

12 Feb 2009, 9:08 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Technically, $table_cost can also be changed to $table2ndday when you change all $table to $table2ndday ...

Look to see if you have all shipping modules showing in the Modules ... Shipping ... and if there are any error messages or if you are missing the last line under the list for:

Module Directory: /home/your_user_name/public_html/your_directory/includes/modules/shipping/

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!

12 Feb 2009, 10:17 PM
#9
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Got it all working somehow one of the files corrupted but looked fine when I opened it.

All is working now.

My only issue is I want to change where it says Table Rate or Best Way and I can't find where to do that and have found only one forum thread and there wasn't any answers on how to do that.

12 Feb 2009, 10:25 PM
#10
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

Oh darn windows search and not working properly.

Searched within a folder using Notepad++ and found what file it was in.

13 Feb 2009, 4:38 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

The Developers Tool Kit is your friend ... :smile:

Tools ... Developers Tool Kit ... and enter in the bottom input box text, constants, code, etc. that you are looking for ...

Select from Catalog, Admin or Catalog/Admin and click Search ...

Voila! All of the places in the php files now display for you ...:cool:

Wouldn't it be cool ... if some day this searched php and/or css files?

Wouldn't it be cool ... if some day this searched php and/or css files and could do it case sensative or not?!

Wouldn't it be cool?!?

Coming soon to a computer near you ... :flex:

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!

13 Feb 2009, 7:16 PM
#12
computra avatar

computra

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options

It would be cool but I think Notepad++ can do all those things so I'm okay with them not doing the search upgrades as long as I have another option.

I'd love to see some better documentation on zen cart where things are more categorized all shipping options and the steps to put those options into play in one category.

There has to be hundreds of shipping methods with options combinations. Someone could write a book just on that!