Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need ideas setting up shipping certain products, over a certain amount to 48 states only,


storeweb88

Recommended Posts

need ideas for setting up shipping>> Any ideas or modules will greatly be appreicated..

 

 

1 > Free on certain products within 48 states

 

2 > over a certain amount within the 48 states. ($90.00) I did try with the regular oscommerce amount total but then ups didn't display. I need ups to display.

 

 

Thank you

Link to comment
Share on other sites

@@storeweb88 here are a couple of options;

 

1 > Free on certain products within 48 states

 

You could use ZWFS (Zero Weight Free shipping). Just zero the weights on the products that you want to have free shipping and your done... Then shipping will be calculated only on items with weights...

 

2 > over a certain amount within the 48 states. ($90.00) I did try with the regular oscommerce amount total but then ups didn't display. I need ups to display

 

I hacked together a module for this... by copying the flat rate module and renaming (them... you need the language file too) it "free.php" and then added this line;

 

 if( function_exists('tep_customer_greeting') && $order->info['subtotal'] < 300 )          
             $this->enabled = false;
   }

 

AFTER

 

        if ($check_flag == false) {
         $this->enabled = false;
       }
     }

 

Might take a little playing around... but its doable with the above instructions... Although, I'm sure there is a better way for someone with more experience.

 

 

Link to comment
Share on other sites

Not that I have tried... However if you google "free shipping per product" I bet you would find something.

 

BTW, if you use the hack to create a free shipping mod that still shows your UPS.... Don't forget to change this line from "300" to "90" (with out the "")

 

if( function_exists('tep_customer_greeting') && $order->info['subtotal'] < 300 )   

 

Link to comment
Share on other sites

Not that I have tried... However if you google "free shipping per product" I bet you would find something.

 

BTW, if you use the hack to create a free shipping mod that still shows your UPS.... Don't forget to change this line from "300" to "90" (with out the "")

 

if( function_exists('tep_customer_greeting') && $order->info['subtotal'] < 300 ) 

 

 

I did what you said and downloaded the http://addons.oscommerce.com/info/8409 ( Just a side note to whoever uses this If you copy and paste the files it works fine, if you follow the directions in editing a few things are missed so it won't work. KEEP IN MIND THAT IF YOU HAVE OTHER MODULES YOU MAY WRITE OVER OTHER FILES IF YOU COPY AND PASTE.)

 

 

Now I'm just stuck on >>

 

1. when it goes to free shipping on how to display rest of the shipping options

2. and changing the national location to remove a few states.

Link to comment
Share on other sites

I did what you said and downloaded the http://addons.oscommerce.com/info/8409 ( Just a side note to whoever uses this If you copy and paste the files it works fine, if you follow the directions in editing a few things are missed so it won't work. KEEP IN MIND THAT IF YOU HAVE OTHER MODULES YOU MAY WRITE OVER OTHER FILES IF YOU COPY AND PASTE.)

 

 

Now I'm just stuck on >>

 

1. when it goes to free shipping on how to display rest of the shipping options

2. and changing the national location to remove a few states.

 

 

Ok I figured out how to do the states certain areas.. I just went into zones setup another country and then change the zone in the state.. Now just the last part getting step 1. to work :)

Link to comment
Share on other sites

Did you complete this step (assuming you are using 2.3 don't forget to install the module via the admin)?

 

by copying the flat rate module and renaming (them... you need the language file too) to "free.php" and then added this line;

 

if( function_exists('tep_customer_greeting') && $order->info['subtotal'] < 300 )

$this->enabled = false;

}

 

AFTER

 

if ($check_flag == false) {

$this->enabled = false;

}

}

 

Maybe I should have been more clear in my brief instructions :) - once you create your 2 new "free.php" files you will have to open them both and replace flat and FLAT (case sensitive) with free & FREE.

 

Example

 
   function flat() {
     global $order;

     $this->code = 'flat';
     $this->title = MODULE_SHIPPING_FLAT_TEXT_TITLE;

Becomes

    
function free() {
     global $order;

     $this->code = 'free';
     $this->title = MODULE_SHIPPING_FREE_TEXT_TITLE;

 

If so, disable the free shipping order total module (it won't be used at all)... Tell me what you see... Do you get shipping quotes?

Link to comment
Share on other sites

Did you complete this step (assuming you are using 2.3 don't forget to install the module via the admin)?

 

 

 

Maybe I should have been more clear in my brief instructions :) - once you create your 2 new "free.php" files you will have to open them both and replace flat and FLAT (case sensitive) with free & FREE.

 

Example

function flat() {
global $order;

$this->code = 'flat';
$this->title = MODULE_SHIPPING_FLAT_TEXT_TITLE;

Becomes

function free() {
global $order;

$this->code = 'free';
$this->title = MODULE_SHIPPING_FREE_TEXT_TITLE;

 

If so, disable the free shipping order total module (it won't be used at all)... Tell me what you see... Do you get shipping quotes?

 

 

 

No I didn't read everything completely.... thanks for pointing that out, which module am I copying the flat rate? Will this work with the 48 states and free shipping over a certain amount?

 

My list>>>

 

1. when it goes to free shipping on how to display rest of the shipping options

Link to comment
Share on other sites

thanks for pointing that out, which module am I copying the flat rate?

 

Yes... Copy (DON'T FORGET TO BACKUP!) includes/modules/shipping/flat.php and includes/languages/english/modules/shipping/flat.php

 

And rename to includes/modules/shipping/free.php and includes/languages/english/modules/shipping/free.php.

 

Then, once you create your 2 new "free.php" files you will have to open them both and replace text "flat" and "FLAT" (case sensitive) with "free" & "FREE" (no ""... also make sure not to add any spaces before or after the text)... Use find and replace feature of notepad++ with the "case match" box checked.

 

Then in includes/modules/shipping/free.php (the new module you just created) add;

 

// don't forget to change < 300 to the value you wish for free shipping//
if( function_exists('tep_customer_greeting') && $order->info['subtotal'] < 300 )                 
                         $this->enabled = false;
       }

 

AFTER

               if ($check_flag == false) {
                 $this->enabled = false;
               }
         }

 

If you then disable your free shipping order total module you should see all shipping rates and, if you install this module (if using 2.3 in the admin under shipping modules), once the free shipping threshold you set is reach it should then also display. Your customer can then choose to use UPS if they wish.

 

Added xxample; I have the text in my includes/languages/english/modules/shipping/free.php changed to;

define('MODULE_SHIPPING_FREE_TEXT_WAY', 'Ground shipping (3 to 10 days).');

 

I have found this dramatically reduces the number of free shipping orders by encouraging them to choose UPS and pay for the shipping to receive faster delivery.

 

 

Link to comment
Share on other sites

Yes... Copy (DON'T FORGET TO BACKUP!) includes/modules/shipping/flat.php and includes/languages/english/modules/shipping/flat.php

 

And rename to includes/modules/shipping/free.php and includes/languages/english/modules/shipping/free.php.

 

Then, once you create your 2 new "free.php" files you will have to open them both and replace text "flat" and "FLAT" (case sensitive) with "free" & "FREE" (no ""... also make sure not to add any spaces before or after the text)... Use find and replace feature of notepad++ with the "case match" box checked.

 

Then in includes/modules/shipping/free.php (the new module you just created) add;

 

// don't forget to change < 300 to the value you wish for free shipping//
if( function_exists('tep_customer_greeting') && $order->info['subtotal'] < 300 )
$this->enabled = false;
}

 

AFTER

if ($check_flag == false) {
$this->enabled = false;
}
}

 

If you then disable your free shipping order total module you should see all shipping rates and, if you install this module (if using 2.3 in the admin under shipping modules), once the free shipping threshold you set is reach it should then also display. Your customer can then choose to use UPS if they wish.

 

Added xxample; I have the text in my includes/languages/english/modules/shipping/free.php changed to;

define('MODULE_SHIPPING_FREE_TEXT_WAY', 'Ground shipping (3 to 10 days).');

 

I have found this dramatically reduces the number of free shipping orders by encouraging them to choose UPS and pay for the shipping to receive faster delivery.

 

 

Will this work with the 48 states and free shipping over a certain amount? And also still work with the check mark for the box free shipping in the inventory?

Edited by storeweb88
Link to comment
Share on other sites

Will this work with the 48 states and free shipping over a certain amount?

Yes, presuming you have a made tax zone in your admin (locations / taxes) called "48 states" - in your admin set the shipping zone for the module as you would for any other shipping module.

And also still work with the check mark for the box free shipping in the inventory?

Don't know... never used this mod... I use ZWFS... Test it and find out...

Link to comment
Share on other sites

Right now i took the other module and started building something. Right now its just selecting the incorrect radio buttons the one above it. I can get it to sort of work but I am missing something. Thats another time and thread though on what I am building.. I just have that little itbitty part to go and then I'm good.

Edited by storeweb88
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...