Zen Cart Logo
Forums / Addon Shipping Modules / Using Fedex Freight and UPS?

Using Fedex Freight and UPS?

Locked

Views: 1,950

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
27 Apr 2010, 21:53
#1
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

Using Fedex Freight and UPS?

I ship most of my products by UPS, but have a hand full of heavy items that need to ship by Fedex freight. Is this possible to setup?
also I would think that if both freight and non-freight items are in the cart the heavy item would ship fedex while the others ship UPS.
Any help is greatly appreciated. Thank you

28 Apr 2010, 16:58
#2
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

Re: Using Fedex Freight and UPS?

if it makes any difference all the freight items are in one category, no UPS item are in the category and no freight item are in categories with UPS items. Sorry to post again thought this info. might help.

28 Apr 2010, 22:58
#3
ajeh avatar

ajeh

Oba-san

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

Re: Using Fedex Freight and UPS?

At this time, there is only the choice of one shipping method per order ...

If you had a mixed order, and could test if the order contains 1 or more Products for FedEx ... can the whole order go FedEx?

29 Apr 2010, 22:47
#4
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

Re: Using Fedex Freight and UPS?

Ajeh,

Thank you for helping. If a freight item is in the a mixed cart I could ship all items by freight, if this would make it easier.
Thanks again

30 Apr 2010, 03:06
#5
ajeh avatar

ajeh

Oba-san

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

Re: Using Fedex Freight and UPS?

You could test the contents of the cart, for example to turn on FedEx when 1 or more from categories_id 27 is in the cart:

// global cart if not already done in the function of the shipping module
global $cart;
$chk_freight = $_SESSION['cart']->in_cart_check('master_categories_id','27')

if ($chk_freight >= 1) {
  $this->enabled = true;
} else {
  $this->enabled = false;
}

where 27 is the Freight only category ...

Then, based on the results you can control whether the FedEx and UPS are enabled or disabled by controlling the $this->enabled in the modules ...

30 Apr 2010, 13:14
#6
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

Re: Using Fedex Freight and UPS?

Where would I try that code? is Fedex XLM the module I should try?
I assume that I would want to add code to the UPS file that would turn UPS off if category 27 is present in cart, right?
Thanks for your help

30 Apr 2010, 15:43
#7
ajeh avatar

ajeh

Oba-san

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

Re: Using Fedex Freight and UPS?

In the UPS shipping module:
/includes/modules/shipping.php

You would add the code, reversing the settings, below the code:

    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
    }

In the FedEx shipping module there will be a similar line for the:
$this->enabled = ...

And you would add the code below that ...

02 May 2010, 14:02
#8
sham avatar

sham

Zen Follower

Join Date:
Feb 2010
Posts:
159
Plugin Contributions:
0

Re: Using Fedex Freight and UPS?

thank you for your help. I will work with it to see what I can come up with.