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,885

Results 401 to 420 of 554
22 Oct 2011, 2:40 AM
#401
brobrow avatar

brobrow

New Zenner

Join Date:
Jun 2011
Posts:
13
Plugin Contributions:
0

Different shipping methods for different categories

I commented that one out and added an echo below cnt_atribute

Just so people can see what item is not allowing them to check out.

$cnt_attribute += 1;
echo 'NOTICE: ' . $products[$i]['name'] . ' Is not available for shipping to your zone in the size selected. <br>';
22 Oct 2011, 3:43 AM
#402
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

That makes sense to help them know ... good luck with your site ... :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!

30 Oct 2011, 11:43 AM
#403
1uppromotions avatar

1uppromotions

New Zenner

Join Date:
Oct 2011
Location:
Ballajura, Perth, Western Australia
Posts:
8
Plugin Contributions:
0

Re: Different shipping methods for different categories

Hi all,
I have tried to setup my postage rule (table rate) as follows:

0.25:1.20,1.25:1.20,1.5:4.00,3.0:6.00,4.5:8.00,6.0:9.00,10.5:9.00

Where an item weighing 0.25 costs $1.20each and up to 5 of this weight costs the same fee. Then items weighing 1.5 cost $4.00each for the first item and $2.00 additional for the second and third item etc, etc .....

When I go online and make a purchase for three items weighing 1.5 it defaults to postage fee of $9.00 which is actually for 6.0 weight.

Also when you purchase 5 items of 0.25 (which I want to cost $1.20 total) it also defaults to $8.00

Can anyone help me PLEEEEEEAAAAAASSSSSEEEEE !!!!!

Cheers,
Craig
:shocking::shocking::shocking::shocking::shocking::shocking:

30 Oct 2011, 1:17 PM
#404
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Check your settings in the Configuration ... Shipping/Packaging ... and make sure the Tare Rates are set to 0:0 ... the default is 0:3 ...

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!

30 Oct 2011, 11:18 PM
#405
1uppromotions avatar

1uppromotions

New Zenner

Join Date:
Oct 2011
Location:
Ballajura, Perth, Western Australia
Posts:
8
Plugin Contributions:
0

Re: Different shipping methods for different categories

YOU ROCK AJEH !!!!!!!!!!!!!!!!!!!

:clap::clap::clap::clap::clap::clap::clap:

31 Oct 2011, 12:04 AM
#406
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Glad to hear that this worked for you ... :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!

31 Oct 2011, 3:47 PM
#407
chadderuski avatar

chadderuski

Totally Zenned

Join Date:
Apr 2006
Location:
Dark Side of the Moon
Posts:
986
Plugin Contributions:
0

Re: Different shipping methods for different categories

Just want to put in a recommendation for Ceon's Advanced Shipper Module:

http://dev.ceon.net/web/zen-cart/advanced-shipper

This module is incredibly flexible and well worth the $80 US.

You can configure shipping per product, per category, per just about what ever you need. I picked this up for a client and it has been a godsend.

I just hope dimensional weights (for UPS and FedEX) make it into some future version of zencart, and also freight classes so freight quotes can be generated in some future mod!

-cj

5 Nov 2011, 12:40 AM
#408
zadris avatar

zadris

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: Different shipping methods for different categories

Hello, I did read through this thread and I am trying to grasp the understanding of what needs to be done for me.

My objective is the to have 3 master categories for one flat rate of $2.95

And the rest of the categories a flat rate of $7.00.

My chosen 3 mater caterogies are 70, 76, 78.

I d/l the flat clone rate. And made the adjustments as best I could understand what to do...

Here is my standand flat:

<?php /** * @package shippingMethod * @copyright Copyright 2003-2009 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // $Id: flat.php 14498 2009-10-01 20:16:16Z ajeh $ // class flat { var $code, $title, $description, $icon, $enabled; // class constructor function flat() { global $order, $db; $this->code = 'flat'; $this->title = MODULE_SHIPPING_FLAT_TEXT_TITLE; $this->description = MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_FLAT_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_FLAT_TAX_CLASS; $this->tax_basis = MODULE_SHIPPING_FLAT_TAX_BASIS; // disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false); } if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) { $check_flag = false; $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_FLAT_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while (!$check->EOF) { if ($check->fields['zone_id'] < 1) { $check_flag = true; break; } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } $check->MoveNext(); } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FLAT_TEXT_WAY, 'cost' => MODULE_SHIPPING_FLAT_COST))); if ($this->tax_class > 0) { $this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title); return $this->quotes; } function check() { global $db; if (!isset($this->_check)) { $check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_FLAT_STATUS'"); $this->_check = $check_query->RecordCount(); } return $this->_check; } function install() { global $db; $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Flat Shipping', 'MODULE_SHIPPING_FLAT_STATUS', 'True', 'Do you want to offer flat rate shipping?', '6', '0', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Shipping Cost', 'MODULE_SHIPPING_FLAT_COST', '5.00', 'The shipping cost for all orders using this shipping method.', '6', '0', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_FLAT_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'zen_get_tax_class_title', 'zen_cfg_pull_down_tax_classes(', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Tax Basis', 'MODULE_SHIPPING_FLAT_TAX_BASIS', 'Shipping', 'On what basis is Shipping Tax calculated. Options are<br />Shipping - Based on customers Shipping Address<br />Billing Based on customers Billing address<br />Store - Based on Store address if Billing/Shipping Zone equals Store zone', '6', '0', 'zen_cfg_select_option(array(\'Shipping\', \'Billing\', \'Store\'), ', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_FLAT_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_FLAT_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { global $db; $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'MODULE\_SHIPPING\_FLAT\_%'"); } function keys() { return array('MODULE_SHIPPING_FLAT_STATUS', 'MODULE_SHIPPING_FLAT_COST', 'MODULE_SHIPPING_FLAT_TAX_CLASS', 'MODULE_SHIPPING_FLAT_TAX_BASIS', 'MODULE_SHIPPING_FLAT_ZONE', 'MODULE_SHIPPING_FLAT_SORT_ORDER'); } } ?>

++++++++++++++++++++++++++++++++

Here is my flatclone:

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2004 The zen-cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: flatClone.php 1969 2008-01-25 01:15:21p DWells $ // cloned from $Id: flat.php 1969 2005-09-13 06:57:21Z drbyte $ // class flatClone { var $code, $title, $description, $icon, $enabled; // class constructor function flatClone() { global $order, $db; $this->code = 'flatClone'; $this->title = MODULE_SHIPPING_FLATCLONE_TEXT_TITLE; $this->description = MODULE_SHIPPING_FLATCLONE_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_FLATCLONE_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_FLATCLONE_TAX_CLASS; $this->tax_basis = MODULE_SHIPPING_FLATCLONE_TAX_BASIS; // disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_FLATCLONE_STATUS == 'True') ? true : false); } // bof: disable for these master_categories_id if (IS_ADMIN_FLAG == false) { // check master_categories_id add one line per master_categories_id $chk_cat = 0; $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70'); $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76'); $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78'); if ($chk_cat < 1) { $this->enabled = false; } } // eof: disable for these master_categories_id if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLATCLONE_ZONE > 0) ) { $check_flag = false; $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_FLATCLONE_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while (!$check->EOF) { if ($check->fields['zone_id'] < 1) { $check_flag = true; break; } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } $check->MoveNext(); } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FLATCLONE_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FLATCLONE_TEXT_WAY, 'cost' => MODULE_SHIPPING_FLATCLONE_COST))); if ($this->tax_class > 0) { $this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (zen_not_null($this->icon)) $this->quotes['icon'] = zen_image($this->icon, $this->title); return $this->quotes; } function check() { global $db; if (!isset($this->_check)) { $check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_FLATCLONE_STATUS'"); $this->_check = $check_query->RecordCount(); } return $this->_check; } function install() { global $db; $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Flat Shipping', 'MODULE_SHIPPING_FLATCLONE_STATUS', 'True', 'Do you want to offer flatClone rate shipping?', '6', '0', 'zen_cfg_select_option(array(\'True\', \'False\'), ', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Shipping Cost', 'MODULE_SHIPPING_FLATCLONE_COST', '5.00', 'The shipping cost for all orders using this shipping method.', '6', '0', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_FLATCLONE_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'zen_get_tax_class_title', 'zen_cfg_pull_down_tax_classes(', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Tax Basis', 'MODULE_SHIPPING_FLATCLONE_TAX_BASIS', 'Shipping', 'On what basis is Shipping Tax calculated. Options are<br />Shipping - Based on customers Shipping Address<br />Billing Based on customers Billing address<br />Store - Based on Store address if Billing/Shipping Zone equals Store zone', '6', '0', 'zen_cfg_select_option(array(\'Shipping\', \'Billing\', \'Store\'), ', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_FLATCLONE_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'zen_get_zone_class_title', 'zen_cfg_pull_down_zone_classes(', now())"); $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_FLATCLONE_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { global $db; $db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_SHIPPING_FLATCLONE_STATUS', 'MODULE_SHIPPING_FLATCLONE_COST', 'MODULE_SHIPPING_FLATCLONE_TAX_CLASS', 'MODULE_SHIPPING_FLATCLONE_TAX_BASIS', 'MODULE_SHIPPING_FLATCLONE_ZONE', 'MODULE_SHIPPING_FLATCLONE_SORT_ORDER'); } } ?>

Am I on the right track?

Thanking you in advance for help.

5 Nov 2011, 1:02 AM
#409
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Now take your custom code for counting the $chk_cat and reverse it so that if 1 or more is in the cart it turns off the Flat Rate flat shipping module ...

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!

5 Nov 2011, 2:37 AM
#410
zadris avatar

zadris

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

Now take your custom code for counting the $chk_cat and reverse it so that if 1 or more is in the cart it turns off the Flat Rate flat shipping module ...

First of all, thank you for your response.

Secondly, I am not sure how to reverse it.

I think you are talking about this:

$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat < 1) {

But can I have a little hint how to reverse it?

Would this be correct?

$chk_cat = 1;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat < 1) {

Thank you again.

5 Nov 2011, 3:22 AM
#411
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

To turn off the Flat Rate flat shipping module, just change the one line:

if ($chk_cat < 1) {

to read:

if ($chk_cat >= 1) {

Now if there is 1 or more in the cart this shipping module will not show ...

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!

5 Nov 2011, 6:25 PM
#412
zadris avatar

zadris

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

To turn off the Flat Rate flat shipping module, just change the one line:

if ($chk_cat < 1) {

> 
> to read:
> ```
if ($chk_cat >= 1) {

Now if there is 1 or more in the cart this shipping module will not show ...

I am lost now. Because what if someone orders more than 1?

Should I increase the 1?

Am I understanding you correctly?

Thank you.

5 Nov 2011, 6:27 PM
#413
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

It is my understanding that you want to run the Flat Rate flat shipping module when there are NO Products from the 3 categories in the cart ... and you want to run the Flat Rate Clone when you have 1 or more Products from the 3 categories in the cart ...

Is this correct? :unsure:

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!

5 Nov 2011, 9:10 PM
#414
zadris avatar

zadris

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: Different shipping methods for different categories

I have this now:

$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat >= 1) {

So, I ran a test and the amounts are reversed.

I would like 70.76.78 to be 3.95 and I set that under shipping price in admin flat clone.

The rest to be $8.00 (regular flat)

But it's reversed....yicks I am sorry I am so lost here..thanks for patience.

Example...if I add a product from 82 it's showing up 3.95 instead of 8.00.

5 Nov 2011, 10:14 PM
#415
zadris avatar

zadris

New Zenner

Join Date:
Oct 2011
Posts:
68
Plugin Contributions:
0

Re: Different shipping methods for different categories

I have been really trying to figure this out. Sorry again..

flat.php

// bof: disable for these master_categories_id
if (IS_ADMIN_FLAG == false) {
// check master_categories_id add one line per master_categories_id
$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat > 0) {
$this->enabled = false;
}
}
// eof: disable for these master_categories_id

clone flat php

// bof: disable for these master_categories_id
if (IS_ADMIN_FLAG == false) {
// check master_categories_id add one line per master_categories_id
$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','70');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','76');
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','78');
if ($chk_cat >= 1) {
$this->enabled = false;
}
}
// eof: disable for these master_categories_id

Again, thank you so much helping me out and I am sorry I am lost. This is a bit challenging for me...but I am seriously trying.

5 Nov 2011, 10:36 PM
#416
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 need to decide which shipping module is to be used when NO Products from the 3 Categories are in the cart and which module should be used when 1 or more Products from the 3 categories are in the cart ...

Also, what is suppose to happen on a mixed cart that has 1 or more Products from the 3 Categories and 1 or more Products that are not in the 3 Categories?

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!

23 Dec 2011, 5:59 AM
#417
inder avatar

inder

New Zenner

Join Date:
Dec 2011
Posts:
11
Plugin Contributions:
0

Re: Different shipping methods for different categories

thank you ajeh for all your work, I learnt alot from your replies and messages on this forum..today I was trying for category shipping but did something wrong..now I can not see install, remove or edit menu on the right side under shipping module...

more details...
when I click on shipping modules...I can see 10 type of shipping modules but on the right side after action menu..there is no link to install, remove or edit....suddenly disappear....

Please help so I could go further....

23 Dec 2011, 2:17 PM
#418
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Check the directory:
/includes/modules/shipping

and make sure that you do not have any extra files, such as backup files in the directory ...

Check the directory:
/cache

and see if you have any debug logs ...

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!

23 Dec 2011, 4:04 PM
#419
inder avatar

inder

New Zenner

Join Date:
Dec 2011
Posts:
11
Plugin Contributions:
0

Re: Different shipping methods for different categories

Ajeh:

Check the directory:
/includes/modules/shipping

and make sure that you do not have any extra files, such as backup files in the directory ...

Check the directory:
/cache

and see if you have any debug logs ...

###################################

It works

Heads OFF.....Thank you ajeh....I will learn more and following you.....

:clap::clap:

23 Dec 2011, 4:07 PM
#420
ajeh avatar

ajeh

Oba-san

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

Re: Different shipping methods for different categories

Thanks for the update that this worked for you ... :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!