Zen Cart Logo

UPS & USPS Shipping

Locked

Views: 2,053

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
23 Nov 2009, 8:14 PM
#1
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

UPS & USPS Shipping

Hello,

I am dealing with 4 dropshippers 3 of them use UPS and 1 uses USPS.

My question is when a customer purchases and item that can only be shipped by USPS and they click go to checkout they see UPS & USPS then they are asked to choose their shipping method how will they know to select USPS shipping?

Is there a way to setup my cart for that 1 dropshippers products that uses USPS shipping?

Thanks!
cameo

23 Nov 2009, 11:49 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: UPS & USPS Shipping

What will happen if a customer buys 5 items and both ups and usps are involved?

24 Nov 2009, 1:56 AM
#3
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

Re: UPS & USPS Shipping

kobra:

What will happen if a customer buys 5 items and both ups and usps are involved?

Hmmm dunno didn't think about that. Well it looks like I'll have to scratch that and think of something else to do.

Thanks for bringing that to my attention.

cameo

24 Nov 2009, 6:26 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: UPS & USPS Shipping

You could test the cart to see if it includes 1 or more items from the manufacturer that only ships USPS and if so, disable UPS ...

Are you using manufacturers_id for the 4 different dropshippers or have you something in the products table that can be tested for to check if any Product is from this 1 dropshipper?

25 Nov 2009, 3:57 AM
#5
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

Re: UPS & USPS Shipping

Ajeh:

You could test the cart to see if it includes 1 or more items from the manufacturer that only ships USPS and if so, disable UPS ...

Are you using manufacturers_id for the 4 different dropshippers or have you something in the products table that can be tested for to check if any Product is from this 1 dropshipper?

I just now registered for USPS after I finish all the steps for "How to setup USPS shipping module tutorial" I will test the cart and do what you said in your first paragraph above.

In your second paragraph, yes I'm using manufacturers_id's for the 4 different dropshippers plus the 1 that uses USPS.

Thanks, Linda!

cameo

25 Nov 2009, 5:20 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: UPS & USPS Shipping

You can use the function $_SESSION['cart']->in_cart_check('manufacturers_id','XX');

where XX is the manufacturers_id to see if 1 or more is in the cart and if so, set the $this->enabled to false in the UPS shipping module ...

25 Nov 2009, 6:02 PM
#7
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

Re: UPS & USPS Shipping

Ajeh:

You can use the function $_SESSION['cart']->in_cart_check('manufacturers_id','XX');

where XX is the manufacturers_id to see if 1 or more is in the cart and if so, set the $this->enabled to false in the UPS shipping module ...

I'm kind of a newbie, so where would I go to find and apply the below?

function $_SESSION['cart']->in_cart_check('manufacturers_id','XX');

Thanks!
cameo

25 Nov 2009, 9:47 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: UPS & USPS Shipping

You need to customize the shipping module:
/includes/modules/shipping/ups.php

You can use this function to test how many products are in the cart from this manufacturer and if 1 or more are in the cart, then you can disable the UPS shipping module ...

26 Nov 2009, 2:48 AM
#9
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

Re: UPS & USPS Shipping

Ajeh:

You need to customize the shipping module:
/includes/modules/shipping/ups.php

You can use this function to test how many products are in the cart from this manufacturer and if 1 or more are in the cart, then you can disable the UPS shipping module ...

Ok, will do I guess I should say will try!:smile:

Thank you Linda!
cameo

27 Nov 2009, 6:22 PM
#10
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

Re: UPS & USPS Shipping

cameo:

Ok, will do I guess I should say will try!:smile:

Thank you Linda!
cameo

Hi Linda,

It's me again. I think Im going to just use zone rates like you showed me how to do in a previous post that I posted. This is getting too hard and confusing for me to do, but I really appreciate all your help.

Thanks!

cameo

27 Nov 2009, 8:39 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: UPS & USPS Shipping

You can customize UPS shipping module so that if manufacturers_id 3 has 1 or more products in the cart that UPS will be disabled or turned off by editing the code:
/includes/modules/shipping/ups.php

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

[B]// bof: turn off UPS if manufacturers_id 3 has 1 or more products in the cart
    global $cart;
    if (!IS_ADMIN_FLAG && $_SESSION['cart']->in_cart_check('manufacturers_id', '3') > 0) {
      $this->enabled = false;
    }
// eof: turn off UPS if manufacturers_id 3 has 1 or more products in the cart
[/B]
    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_UPS_ZONE > 0) ) {

see if that helps ... :smile:

28 Nov 2009, 2:21 PM
#12
cameo avatar

cameo

Zen Follower

Join Date:
Nov 2009
Location:
Ohio
Posts:
100
Plugin Contributions:
0

Re: UPS & USPS Shipping

Ok, I'll try it.

Thanks again!

cameo