Results 1 to 10 of 552

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Hey
    Thanks for getting back to me. I'm talking about the original edit:
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true : false);
    }

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


    Still can't figure what i'm doing wrong as it seems dead straight forward!

  2. #2
    Join Date
    Dec 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by tiger View Post
    Hey
    Thanks for getting back to me. I'm talking about the original edit:
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true : false);
    }

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


    Still can't figure what i'm doing wrong as it seems dead straight forward!
    Did you change the Master Category ID # to point to the category you want to apply this to? Like where '17' is, change it to your category ID.

  3. #3
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I thanks for the reply. Yes, i did change it to the right category id. There are subcategories under it before you reach the products - does this matter? I did also try putting the subcategory id however and this didn't work either! Still miffed!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Quote Originally Posted by tiger View Post
    I thanks for the reply. Yes, i did change it to the right category id. There are subcategories under it before you reach the products - does this matter? I did also try putting the subcategory id however and this didn't work either! Still miffed!
    The reference to the master_categories_id needs to be the one in the products table ... not the parent of the categories inside of it ...
    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. #5
    Join Date
    Jun 2009
    Posts
    66
    Plugin Contributions
    0

    Default Re: Different shipping methods for different categories

    I need no free shipping for one category only...
    I need to add only this code to freeoptions.php?

    PHP Code:
     if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','107') > 0)) {
            
    $this->enabled false;
          } 
    (it doesn't operate!)

    thank you very much

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Depends on where you put that in the code ...
    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. #7
    Join Date
    Jul 2009
    Posts
    234
    Plugin Contributions
    1

    Default Re: Different shipping methods for different categories

    Ajeh - thank you for your reply, much appreciated :)

    I was adding the code into the wrong place! oops my bad!

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different shipping methods for different categories

    Thanks for the update that you were able to get the code working after placing it in the right location of the file ...
    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!

 

 

Similar Threads

  1. Re: Different shipping methods for different categories
    By kaddie in forum Built-in Shipping and Payment Modules
    Replies: 14
    Last Post: 19 Nov 2010, 04:37 AM
  2. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  3. Different shipping methods for different categories and mixed categories
    By neit in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 10 Aug 2010, 12:20 AM
  4. Separate Shipping Methods for Different Categories
    By MortalWombat in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Jul 2010, 08:57 AM
  5. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg