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.
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 ...
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 ...
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 :)
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
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];
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.
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:
Quote:
Module Directory: /home/your_user_name/public_html/your_directory/includes/modules/shipping/
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.
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.