If this is your first visit, check our documentation. To post, register or login.
Forums / Built-in Shipping and Payment Modules / Different shipping methods for different categories

Different shipping methods for different categories

Started by tylerd213 on 13 Mar 2008, 2:16 AM · Views: 107,884

Results 241 to 260 of 554
21 Jun 2010, 12:41 AM
#241
ajeh avatar

ajeh

Oba-san

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

Different shipping methods for different categories

What happens if you only have Products for categories_id 51 in the cart? And is the master_categories_id on each of these Products also 51?

What happens if you have a cart with Products from categories_id 51 and other Products from other Categories?

If the current Table Rate works for all Products, except when a Product from categories_id 51 is in the cart ... can you just add an additional charge to the current charge that is being calculated by the Table Rate?

Something like if 1 Product from categories_id 51 is in the cart add $XX.XX and if 2 Products from categories_id 51 is added to the cart, add something like XX.XX * 2 to the cost already calculated by the Table Rate?

What method is the Table Rate table shipping using? Item, Total or Weight?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Jun 2010, 2:11 AM
#242
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Different shipping methods for different categories

current table rate is based on total price in cart; if cart totals over $75 she has a percentage of total price to calculate shipping.
I rather like the idea of your suggestion to just tack on a price IF an item (or 2, etc) were added from category 51 -- how would I do that?

Alternately, I'm considering just making items in categories_id 51 as "free shipping" -- and build the shipping cost into the item(s) themselves. If i do this, and items from other categories are in the cart as well, does it know not to add the value of the cat-51 items to the final shipping cost??

21 Jun 2010, 2:27 AM
#243
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 the Table Rate table shipping module works right now for all Products, except these Products in categories_id 51 and you are basing your Table Rate on Price ...

Are you able to add just an additional charge to the current calculated shipping charge based on the fact that these Products have their Price in that Table Rate calculation or does that have to be backed out before the additional charge is applied for the categories_id 51 Products?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Jun 2010, 2:42 AM
#244
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Different shipping methods for different categories

Let me see if I can explain this and answer you properly.
Ordering from categories_id 51 requires shipping 3, 6, 9 or 12 times (it is basic product but purchased at a monthly subscription price)

So according to my client, if someone orders the 12-month subscription she will lose $50 in shipping fees - based on the current table rate (based on price)
I don't do math at all well so this boggles my mind -- but based I am assuming that -- yes -- I could just add an additional charge to the current calculated shipping charged to cover the difference. The trick of course will be to determine how much (preferably a percentage?)

21 Jun 2010, 2:50 AM
#245
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Is the customer ordering Quantity 3, 6, 9 or 12?

So if this was a $10 Product they would be charged:
$30, $60, $90 or $120

and that the Table Rate based on Price does not charge enough on the Price of these items against the Table Rate settings?

If that is the case, then how much needs to be charged on these Products?

If I order 3? 6? 9? or 12?

Do you use Free Shipping for anything or the setting 0 weight means Free Shipping in the Shipping/packaging?

I am trying to think through an idea here but need a few more facts on what to do with the Price of the Category 51 Products so they are not part of the Table Rate but then add in the "special" shipping charge for them ...

And, if that can be based on the Category 51 Product quantity * $XX.XX for their shipping charge ... to then add that to the Table Rate calculation ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Jun 2010, 3:10 AM
#246
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

Is the customer ordering Quantity 3, 6, 9 or 12?

So if this was a $10 Product they would be charged:
$30, $60, $90 or $120

and that the Table Rate based on Price does not charge enough on the Price of these items against the Table Rate settings?

Correct.

If that is the case, then how much needs to be charged on these Products?

If I order 3? 6? 9? or 12?

The 3 month plan costs $66, shipping based on the table rate comes to $21.49 but needs to be $31.47

6 month costs $132, shipping based on the table rate over $75 is charged at 28% which (I think?) is $36.96 but needs to be $62.94

etc.

Do you use Free Shipping for anything or the setting 0 weight means Free Shipping in the Shipping/packaging?

No, I am not currently using Free Shipping at all.
Would it work to set up the categories_id 51 items for Free Shipping and just include the actual shipping charges into the product price itself (with a descriptive statement for the customer)

If I do this and other items from other categories are in the same cart will they calculate minus the purchase price of the categories_id 51 item(s)??

I truly appreciate your help ... and hope you know what an amazing person you are for all you do here :)

21 Jun 2010, 5:08 AM
#247
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Let's say Product A is in categories_id 51 and has master_categories_id 51 and we want to charge $12.00 shipping ... so if 1 Product A is sold you get $12.00 shipping if 2 Product A then $24.00 etc.

Customize the Table Rate table shipping module by changing the code in:
/includes/modules/shipping/table.php

Near the top of the file change:

    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }

To read, so that the module is not disabled by Always Free Shipping:

//    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
//    }
// bof: give categories_id 51 a charge of $12.00 per quantity
global $cart;
$chk_cat_51 = $_SESSION['cart']->in_cart_check('master_categories_id','51');
$chk_cat_51_shipping = $chk_cat_51 * 12.00;

    $this->quotes = array('id' => $this->code,
    'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
    'methods' => array(array('id' => $this->code,
    'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
    'cost' => $chk_cat_51_shipping + $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));
// eof: give categories_id 51 a charge of $12.00 per quantity

Now, just mark the Products in categories_id 51 to be Always Free Shipping and set the 12.00 to what ever amount you want to charge for shipping on Products in categories_id 51 ...

Also set on the Table Rate table shipping a 0:0; in front of the existing rates, example:

0:0; 25:1.00; 50:2.50; 75;3.75; 100:4.00, 500:10%

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Jun 2010, 5:20 AM
#248
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Different shipping methods for different categories

You are phenomenal! I will try this out ... and include a pot of coffee and donuts in my client billing this month!!

But is it possible to set the 12.00 to a percentage instead of a dollar amount?
Because product choices in categories_id 51 are not selected by quantity, but literally 4 different items based upon the length of subscription.
I suppose I could change that so each "item" is equal to a 3 month subscription (so a 12 month subscription would equate to 4 quantity)

21 Jun 2010, 1:17 PM
#249
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Providing that you are not using Always Free Shipping for anything other than these special products ... you can use this for any Product even those outside of categories_id 51 as this new way captures all Products that are Free Shipping ...

NOTE: you must turn OFF the setting in Shipping/Packaging for 0 weight means Free Shipping as now those products without weight would get counted as Free Shipping if this were turned on, so set this to NO:

If there is no weight to the order, does the order have Free Shipping?
0= no
1= yes

Note: When using Free Shipping, Enable the Free Shipping Module this will only show when shipping is free.

And change the code to read:

// bof: give categories_id 51 a charge of $12.00 per quantity
global $cart;
//$chk_cat_51 = $_SESSION['cart']->in_cart_check('master_categories_id','51');
//$chk_cat_51_shipping = $chk_cat_51 * 12.00;

// comment out echo below to not see it
//echo 'I SEE FREE SHIPPING: items: ' . $_SESSION['cart']->free_shipping_items() . ' price: ' . $_SESSION['cart']->free_shipping_prices() . ' 7%: ' . $_SESSION['cart']->free_shipping_prices() * .07 . '<br>';

// charge 7% on ANY product marked as Always Free Shipping
$chk_cat_51_shipping = $_SESSION['cart']->free_shipping_prices() * .07;

    $this->quotes = array('id' => $this->code,
    'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
    'methods' => array(array('id' => $this->code,
    'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
    'cost' => $chk_cat_51_shipping + $shipping + (MODULE_SHIPPING_TABLE_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_TABLE_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_TABLE_HANDLING) ) ));
// eof: give categories_id 51 a charge of $12.00 per quantity

I left in the old code, commented in case you need that later on ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Jul 2010, 8:51 PM
#250
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Different shipping methods for different categories

just realized that I neglected to say THANK YOU VERY MUCH!!!!

8 Jul 2010, 12:35 AM
#251
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

You are most welcome ... glad that this helped ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Jul 2010, 12:02 PM
#252
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Re: Different shipping methods for different categories

Hi everyone

I've been looking around the forums for some time now, and thought this the best place to post.

I'm looking for a similar thing to the OP... my products are mostly drop-shipped, so I have a flat rate of $15 and $35, depending on the item. I also have a range of products that I stock and ship out myself, with shipping costs based on weight groups (up to 500g, over 1kg, etc.).

What I want to do is have the correct flat rate shipping method as the only option, as per the drop-shipped item (so one for $15 and another for $35), and then the same for the products I stock (for example, an option for smaller items at $6, another at $10, and larger items at $12).

Now, all the items are available internationally, with three zones and each with more pricing differences (where a parcel in Aus up to 500g, for example, costs X amount, internationals have strict weight groups, so up to 250g is Y amount and up to 500g is Z amount, etc.).

I had a look at using the ozpost module, as this would be the best option because it uses Australia Post rates, but it doesn't allow for custom shipping rates to be set, so it's not quite right for me.

I hope this is clear enough for you to understand and I am happy to offer anyone a cup of coffee who could help with this.

I look forward to hearing back from you,
Tija

23 Jul 2010, 6:03 AM
#253
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Different shipping methods for different categories

Now, all the items are available internationally, with three zones and each with more pricing differences (where a parcel in Aus up to 500g, for example, costs X amount, internationals have strict weight groups, so up to 250g is Y amount and up to 500g is Z amount, etc.).
As far as this part goes, there is a MOD you could use (in the free addons section) called "Zone Table Rates" or something like that. It's a combination of zone rates and table rates (both of those come with your initial install).
You could try that MOD out for this part of your problem (quoted above). You can set the Zone Table Rates to wieght (i.e. Zone1 10000:100% means that anything up to 10000 lbs, or grams, or whatever you have your site set at, would cost 100% of the weight.).
Then all you would have to do is put the shipping weight of your products as what it would cost to ship (drop-ship A = 15, drop-ship B = 35, and then whatever your on-hand products would cost). As your drop-shipped items sound like they are all flat rates per item, I hope this will work for you.
See below for what the setup looks like on the Zone Table Rates Mod. Notice that each "Zone" has it's own handling fee:
Enable Table Method
Do you want to offer zonetable rate shipping?

True
False

Table Method
The shipping cost is based on the order total or the total weight of the items ordered or the total number of items ordered.

weight
price
item

Tax Class
Use the following tax class on the shipping fee.
--none-- Non-Tax Taxable Goods

Tax Basis
On what basis is Shipping Tax calculated. Options are
Shipping - Based on customers Shipping Address
Billing Based on customers Billing address
Store - Based on Store address if Billing/Shipping Zone equals Store zone

Shipping
Billing
Store

Sort Order
Sort order of display.

Shipping Zone 1
If a zone is selected, only enable this shipping method for that zone.
--none-- Zone 1 Zone 2 Zone 3 Zone 4 Zone 5

Zone 1 Shipping Table
The shipping cost is based on the total cost or weight of items or count of the items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc
25:8.50,50:5.50,10000:0.00

Zone 1 Handling Fee
Handling fee for this shipping method.

Shipping Zone 2
If a zone is selected, only enable this shipping method for that zone.
--none-- Zone 1 Zone 2 Zone 3 Zone 4 Zone 5

Zone 2 Shipping Table
The shipping cost is based on the total cost or weight of items or count of the items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc
25:8.50,50:5.50,10000:0.00

Zone 2 Handling Fee
Handling fee for this shipping method.

Shipping Zone 3
If a zone is selected, only enable this shipping method for that zone.
--none-- Zone 1 Zone 2 Zone 3 Zone 4 Zone 5

Zone 3 Shipping Table
The shipping cost is based on the total cost or weight of items or count of the items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc
25:8.50,50:5.50,10000:0.00

Zone 3 Handling Fee
Handling fee for this shipping method.

Flip Perry
S~Scents

23 Jul 2010, 8:33 AM
#254
neit avatar

neit

Zen Follower

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

Re: Different shipping methods for different categories

After reading through the 26 pages of this read I not much clearer on what to do
some of the others issues are similar to mine but there has been no clear instructions.

I plan on selling 2 products on my website currently we are on selling higher value products:

  1. Higher value products (category a)
  2. Lower value products (category b)
  3. Other categories combination of products in category a and b)

I currently have the clat rate shipping module cloned 8 times with different zones set to each clone.

My shipping prices are fixed for each zone no matter if its a higher value product or a lower value product I still get charged
the same from the courier.

For 2 of these cloned flat rate zones I offer free shipping on higher value products and we absorb the cost of the courier.

For the zones with free shipping we are unable to absorb the courier charges if a customer purchases a lower value product
only as we would then be selling the product at a loss.

So what I am trying to setup is a shipping modification
that will:

a) higher value product = shipping free
b) higher value and lower value product = shipping free
c) lower value product = shipping rate £5

Having read through the thread the nearest I have found to
what I am looking to do is this but I am not sure on this and
what code to edit.

// disable for one master_categories_id
      if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
          $this->enabled = false;
      }  
23 Jul 2010, 8:34 AM
#255
mortalwombat avatar

mortalwombat

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
131
Plugin Contributions:
0

Re: Different shipping methods for different categories

Thanks, flipperry - I'll look into that mod.

The only thing is that the items I have drop-shipped are shipped at a different cost internationally than nationally. So, for instance, if an item is shipped at $15 within Australia, it might cost $50 to Zone 1 and $80 to Zone 2.

How would this work with the weight being set as the shipping cost?

Another thing is how the mod would work with multiple items in the one order (this would mostly be for the items I stock).

For instance, a customer buys two items, each with a 'weight' of 10 (so $10 shipping each) - this makes the shipping cost $20 - but those two items can fit into a parcel that only costs $15 to ship.

Another example would be that a customer buys only one of the items with a weight of 10 and another with a weight of 2 - the shipping then would be $12 - but the actual cost should be $15.

So how would one go about these problems?

17 Aug 2010, 2:02 PM
#256
stevelucky avatar

stevelucky

New Zenner

Join Date:
Jun 2010
Posts:
44
Plugin Contributions:
0

Re: Different shipping methods for different categories

It looks like this is the thread to post this, so here I go...

Most of my items have free shipping in the US and a $2.99 flat rate outside the US. I'm adding some new items that will have a $4.95 shipping cost in the US and an $8.95 cost outside the US. I've got my 2 zones setup, but I can't figure out how to make certain items have the old pricing structure, while others will have the new, higher rate. Those rates are per order, not per item. So if somebody orders 3 items that are all part of the new pricing structure, they'll only pay a total of $4.95 US and $8.95 international, not that amount for each item.

Any thoughts on how I would accomplish that?

20 Aug 2010, 5:52 AM
#257
raptor_55 avatar

raptor_55

New Zenner

Join Date:
Jul 2010
Posts:
23
Plugin Contributions:
0

Re: Different shipping methods for different categories

Hi this also looks like a good thread for my question.
I was wondering if you can make certain categories have certain shipping prices. I sell computer parts online and for most people a box of parts to a postcode is a certain price that ozpost is working out but then other things like a computer case ordered with a monitor it is saying it is the same postage as if just the monitor when it is costing me double as two packages will need to be sent?

some sort of code that worked out if cart has something from category 'monitors' or 'cases' shipping price is normal shipping price times the number of items from either of these categories.

you can view the site at www. acecomputers. com.au and see what i mean when doing a shipping estimate.

I normally ask really hard or really silly questions sorry i dont know any php or coding of any sort.

Thanks

10 Sep 2010, 8:00 PM
#258
jeanie avatar

jeanie

New Zenner

Join Date:
Aug 2010
Posts:
2
Plugin Contributions:
0

Re: Different shipping methods for different categories

Hi,
I am using zen cart 1.3.8a, and I'm having trouble figuring out my ceon advanced shipper module. I have 3 shipping methods for different products, 1 is a flat rate, 2 is free shipping, 3 is actual weight cost (for heavy items).
What I want to do is charge a flat rate of x dollars, not matter how many items are in the box, but all I can get it to do is charge that price for each item in the box, so when a customer orders 3 items they get charged that price 3 times! sooo frustrating!
Thanks for your help!

12 Sep 2010, 1:12 AM
#259
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Different shipping methods for different categories

I've never used the mod you mentioned, but if it is like the shipping mod I've used, it sounds like you have it set someone to "Per Item" charge instead of "Based on Total Weight."

-lindasdd

12 Sep 2010, 3:42 PM
#260
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Jeanie:

Hi,
I am using zen cart 1.3.8a, and I'm having trouble figuring out my ceon advanced shipper module. I have 3 shipping methods for different products, 1 is a flat rate, 2 is free shipping, 3 is actual weight cost (for heavy items).
What I want to do is charge a flat rate of x dollars, not matter how many items are in the box, but all I can get it to do is charge that price for each item in the box, so when a customer orders 3 items they get charged that price 3 times! sooo frustrating!
Thanks for your help!

You say you have Flat Rate flat installed but are describing Item Rate item ...

Check in the Modules ... Shipping ... and check that you are in fact using the Flat Rate flat shipping module and not the Item Rate item shipping module ...

Flat Rate flat charges a single charge, regardless of if you have 1 or 12 things in the cart ...

Item Rate item charges a rate per quantity in the cart so 1 would have a single charge and 12 would be 12 x the rate ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!