Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Different shipping methods for different categories

Different shipping methods for different categories

Views: 107,635

Results 41 to 60 of 554
5 Jun 2008, 10:30 PM
#41
cwsites avatar

cwsites

New Zenner

Join Date:
Apr 2008
Location:
Georgia
Posts:
15
Plugin Contributions:
0

Different shipping methods for different categories

No Zone Rates

6 Jun 2008, 3:54 PM
#42
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Have you an URL where we could perhaps experience the moment on this? :smile:

7 Jun 2008, 3:34 PM
#44
knighs2 avatar

knighs2

New Zenner

Join Date:
May 2007
Posts:
42
Plugin Contributions:
0

Re: Different shipping methods for different categories

If anyone is look for a really good shipping mod that allows you to charge different prices or methods of diff. categories or products have a look at http://dev.ceon.net/ Ive recently bought the mod and its fantastic. Infact i dont need another mod cos this one doesnt everything !

8 Jun 2008, 6:13 PM
#45
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Are you sure you have that Zone Rate setup right?

I get shipping discounts if I order $4000 worth of product to get the discount at 50 lbs ... do you want that set by weight or price? :unsure:

10 Jun 2008, 12:23 AM
#46
cwsites avatar

cwsites

New Zenner

Join Date:
Apr 2008
Location:
Georgia
Posts:
15
Plugin Contributions:
0

Re: Different shipping methods for different categories

not sure, they set it up before me.

10 Jun 2008, 4:42 PM
#47
nightwolff avatar

nightwolff

New Zenner

Join Date:
Dec 2006
Location:
Ohio
Posts:
16
Plugin Contributions:
0

Re: Different shipping methods for different categories

Using the methods described here I was able to configure my USPS shipping module to only show up when the dollar value of a customer's total order is less than $10.00.

// disable only when entire cart is free shipping 
      if (zen_get_shipping_enabled($this->code)) { 
          $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false); 
      }
 
      // disable for orders over ten dollars 
      if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() < 10)) { 
          // show USPS 
          $this->enabled = true; 
      } else { 
          // hide USPS 
          $this->enabled = false; 
      }  

Thanks for the discussion. This helps alot! :clap:

-Shawn

11 Jun 2008, 4:13 AM
#48
cwsites avatar

cwsites

New Zenner

Join Date:
Apr 2008
Location:
Georgia
Posts:
15
Plugin Contributions:
0

Re: Different shipping methods for different categories

no, the shipping should be different for each different product.

12 Jun 2008, 5:56 AM
#49
cwsites avatar

cwsites

New Zenner

Join Date:
Apr 2008
Location:
Georgia
Posts:
15
Plugin Contributions:
0

Re: Different shipping methods for different categories

-bump-

Please help with this, clients are really pushing, the UPS I believe is working, but I haven't touched ANY other shipping stuff and it's charging everybody 8.50, even if they were set as Free shipping before. I need an answer on this asap, please help. :frusty:

12 Jun 2008, 10:52 PM
#50
cwsites avatar

cwsites

New Zenner

Join Date:
Apr 2008
Location:
Georgia
Posts:
15
Plugin Contributions:
0

Re: Different shipping methods for different categories

Table Rate

Enable Table Method
True

Shipping Table
68:6.95,80:12.95,91:6.95, 100:12.95,107:6.95,300:0.00, 400:19.95,600:29.95,2000:49.95, 3000:79.95,5000:99.95,10000:199.95

Table Method
price

Handling Fee
0

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
USA

Sort Order
0

---- New rates, please help, I tried something that was $37 and it charged me 12.95 and it's only supposed to be 6.95?

15 Jun 2008, 3:57 PM
#51
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

What are your settings for the Shipping/Packaging?

22 Jun 2008, 7:00 PM
#52
cellmonsters avatar

cellmonsters

New Zenner

Join Date:
Dec 2007
Posts:
18
Plugin Contributions:
0

Re: Different shipping methods for different categories

QUOTE=Ajeh;559683]Imagine for a moment ...

I buy 3 Products from categories_id 15 and that means UPS ...

Tommy buys 4 Products from categories_id 32 and that means "other shipping module(s)" ...

Freddy buys 2 Products from categories_id 32 and 1 Product from categories_id 15 ...

1 Can Tommy use UPS as an option? ... meaning other shipping modules show "and" UPS also shows ... OR, other shipping module(s) show but UPS does NOT show ...

2 Can Freddy "only" use UPS? ... meaning no other shipping modules show

3 Can I "only" use UPS? ... meaning my whole order is categories_id 15 so that is my "only" shipping module to choose from

What "other" shipping module(s) are you using aside from UPS?♠[/QUOTE]

I had this very same problem.

if a customer chose a category that only provided UPS and then added another product from a category that only provided "other shipping" once they clicked on checkout, an error page would come up as it would cancel each other out.

My only solution was that when lets say, category 2 was in shopping cart, to show other shipping as well as ups, when category 1 was in shopping cart, UPS would hide.. and if category 1 and 2 were in shopping cart, then only other shipping would come up and UPS would still be hidden. This way, only both UPS and other shipping option show up if a product from category 2 is added. if it is mixed up with another product.. UPS is no longer an option.

23 Jun 2008, 12:28 AM
#53
hornsales avatar

hornsales

New Zenner

Join Date:
Nov 2007
Posts:
54
Plugin Contributions:
0

Re: Different shipping methods for different categories

I think this thread can help me. I have tried figuring this out myself using the previous post but I am able to figure out what variable I need to use.

I want to set my USPS module to only turn on if the total order weight of each box in the order is less than 20 pounds.

Could someone please help me with the correct code to insert.

Matt

23 Jun 2008, 12:57 AM
#54
hornsales avatar

hornsales

New Zenner

Join Date:
Nov 2007
Posts:
54
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ok I almost have something that works

In the USPS module I added $shipping_weight to the first global line

Then added this code:
// disable only if shipping weight > 20
if ($shipping_weight > 20) {
$this->enabled = false;
}

This then only lets the USPS module show if the total weight is less than 20 pounds

But If I have 2 boxes that each weigh less than 20 pounds USPS does not show but I want it to show.

Any help would be appreciated

Matt

23 Jun 2008, 1:10 AM
#55
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

If your Maximum Shipped weight is > 20, then your boxes cannot be less than 20 when there is more than one box ...

What are you using for the Maximum Box shipped in the Shipping/Packaging?

23 Jun 2008, 1:16 AM
#56
hornsales avatar

hornsales

New Zenner

Join Date:
Nov 2007
Posts:
54
Plugin Contributions:
0

Re: Different shipping methods for different categories

My Max weight per box is set at 30. So if I have 2 20 pound items each item would go in 1 box. But with the code I used the USPS module doesn't show.

Matt

23 Jun 2008, 1:36 AM
#57
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Unfortunately ... it doesn't quite work that way, at this time ...

You have 2 20lb Products and ship a maximum of 30lbs so it will make 2 boxes of 20lbs ... check where you are setting your test what the actual value of $shipping_weight is ... if it is equal to 20 and you add in a Tare weight, then you are over the 20 and may really be at 22.00 with the 10:0 on the Large Package ...

28 Jun 2008, 12:31 AM
#58
motherthemother avatar

motherthemother

New Zenner

Join Date:
Jun 2008
Posts:
20
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

You could customize the shipping modules that when a given master_categories_id is in the shopping cart then only Store Pickup storepickup can run ...

Otherwise, when nothing from that master_categories_id is in the cart then all other Shipping modules run ...

You should also consider whether you want Store Pickup storepickup to always show as an option ...

Can someone help with coding the item.php file (or another area) if I want certain items to not have store pick up? I want all my items to have shipping all the time.

28 Jun 2008, 4:07 PM
#59
cellmonsters avatar

cellmonsters

New Zenner

Join Date:
Dec 2007
Posts:
18
Plugin Contributions:
0

Re: Different shipping methods for different categories

I can certaintly help you on this..

Please email me at [email protected]

Currently I have been successful at coding the shipping options to include more than one master category.

29 Jun 2008, 9:51 PM
#60
cellmonsters avatar

cellmonsters

New Zenner

Join Date:
Dec 2007
Posts:
18
Plugin Contributions:
0

Re: Different shipping methods for different categories

GraniteMan44:

I would like to do what the original poster asked. If I want to use "per item" on more than one category, do I have to duplicate the

  • if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
    $this->enabled = false; *

for each category?

Or can I list the others within the same line as the '17' ?

example: 'master_categories_id','17','18', '20')

Thank you.

G

Alright, so i have been troubleshooting this for a while now since it is an option that I really want and all i have been able to do is change the code to instead of using master_categories_id i tested with :

// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_model','SHP1') > 0)) {
$this->enabled = true;
}

now, everytime a product with this model "SHP1" is in the cart, the appropriate shipping module is activated. What i found out is that you cannot include more than 2 main_categories_id in the shipping module. for example you can use:

// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','1') > 0)) {
$this->enabled = true;
}

and under this another:
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','2') > 0)) {
$this->enabled = false;
}

this would disable any products in category 2 from using whatever shipping module this code is in. however, you cannot repeat the same code to disable another category as it would not work. At least it did not work for me. so what i did was change the master_categories_id to products_model, therefore any products with the same Model, regardless of their categories would disable or enable a shipping module.

Hope this helps everyone that would like to include many products in different categories and would like these to activate different shipping options.