Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Shipping Problem

    Then you could use the code:
    Code:
    // bof: skip certain categories and disable they are in the cart for master_categories_id 7, 10 and 14
          if (IS_ADMIN_FLAG == false) {
            global $cart;
            $chk_skip_categories = 0;
            $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','7');
            $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','10');
            $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','14');
            if ($chk_skip_categories > 0) {
              $this->enabled = false;
            }
          }
    // eof: skip certain categories and disable they are in the cart for master_categories_id 7, 10 and 14
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  2. #12
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag Re: Shipping Problem

    So would that be intelligent enough to realise that if a customer comes along and purchases a product that is Non flammable (first class) and then another item that is flammable (royal mail track and trace) to charge the flammable postage rate which would be royal mail track and trace and calculate the price on weight according to the flammable postage rate.

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Shipping Problem

    No that would be intelligent enough to know that flammable products are in the cart, if you are testing the master_categories_id of the flammable products ...

    Then, you need to decided that based on the results of are there any flammable products in the cart, should the shipping module be active or inactive by the setting of the $this->enabled ...

    So if you add that code to the shipping module that should NOT run when flammable products are in the cart, then it will turn off that shipping module if a flammable product is added to the cart so it will not show as a shipping choice ... now, that would leave the other shipping module active as the only choice ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #14
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag Re: Shipping Problem

    right so based on your code, then I don't have to do anything other than assign the categories to the code? right?

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Shipping Problem

    Correct ... and if you need more categories to be checked then you can just add more lines of:
    Code:
            $chk_skip_categories += $_SESSION['cart']->in_cart_check('master_categories_id','7');
    where you set the 7 to the flammable categories_id ... which is the master_categories_id ... to be checked if Products from it are in the cart ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #16
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag Re: Shipping Problem

    ok I think that could be a solution then. will do some testing :-)

    Thanks for your time and patience Linda.

  7. #17
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag Re: Shipping Problem

    Just one more thing Linda, and sorry for being dim. What file would I put this code in?

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Shipping Problem

    You have two shipping modules ... one of them you do not want when there are flammable products ... which shipping module is that?
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #19
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag Re: Shipping Problem

    Just thought I'd add that I'm using table rates and there's two separate files set up called table1.php (first class) and table2.php (royal mail track and trace)

    Would I add the code into both of these files?

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Shipping Problem

    Do you want them BOTH to not work?

    Or are you trying to turn off 1 of these two files?

    Or, are you trying to turn ON a 3 shipping module and turn OFF these two shipping modules?
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Shipping problem
    By fw541c in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Oct 2010, 03:27 PM
  2. Free Shipping/Shipping Estimator problem
    By willieWontGo in forum Built-in Shipping and Payment Modules
    Replies: 13
    Last Post: 5 Dec 2009, 03:17 AM
  3. Problem with the shipping PLZ help!!
    By pzgoozi in forum Customization from the Admin
    Replies: 1
    Last Post: 3 Apr 2009, 10:47 PM
  4. Shipping problem
    By cris29 in forum Basic Configuration
    Replies: 6
    Last Post: 6 Nov 2008, 08:41 PM
  5. "Not Shipping to your region" problem - Shipping Estimator
    By hnchew in forum Addon Shipping Modules
    Replies: 0
    Last Post: 28 Dec 2006, 04:54 AM

Bookmarks

Posting Permissions

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