Results 1 to 10 of 44

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Shipping Problem



    Er yes I guess so, but how would I write the code to do this? I know the zen code but will be honest and say I'd struggle on this to write from scratch. But could do this as a Mod for other users if I could get it to work with your help?
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  2. #2
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Shipping Problem

    Hi Linda, how would I go about writing the code to connect this up to the admin, what files would I need to edit and do you have any idea of the code I would need to do this?

    Thank You

    Nick
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

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

    Default Re: Shipping Problem

    I would have to write the whole set of code to be able to tell you everything from adding the new field to using it in the shipping modules as the test ...

    For adding a new field, find one such as the field:
    product_is_always_free_shipping

    and trace its use in the Admin with the Tools ... Developers Tool Kit ... to see how it is used for all of the modules on a Product for adding/editing ...
    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!

  4. #4
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Shipping Problem

    ok, not sure I have time to develop something like that at the moment. But been having a think about a way to do this quick and easy.

    If I had a category with two sub categories like this

    Chemicals > Flammable

    Chemicals > Non Flammable

    Could I use the code you gave me earlier in this thread to assign the correct postage to the correct category > sub category?

    Nick
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

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

    Default Re: Shipping Problem

    You can test the cart based on either products_id or based on master_categories_id in an easy manner ...

    Do the Products in the Flammable Category all use that categories_id as their master_categories_id value?
    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!

  6. #6
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Shipping Problem

    That would be correct, the categories would be broken down like this:

    Chemicals (master category) > Flammable (sub category)

    Chemicals > Non Flammable

    Controllers (master category) > Flammable (sub category)

    Controllers > Non Flammable

    Dosing Systems (master category) > Flammable (sub category)

    Dosing Systems > Non Flammable

    Pumps (master category) > Flammable (sub category)

    Pumps > Non Flammable

    Tanks, Bunds and Accessories (master category) > Flammable (sub category)

    Tanks, Bunds and Accessories > Flammable

    Water Testing (master category) > Flammable (sub category)

    Water Testing > Non Flammable

    General Spares (master category) > Flammable (sub category)

    General Spares > Non Flammable

    Safety Equipment (master category) > Flammable (sub category)

    Safety Equipment > Non Flammable


    So in effect the sub category would be the master category for those products beneath the top level master category if that makes sense.


    Non-Flammable would be first class post

    Flammable would be Royal Mail Track and Trace

    This is the website http://www.jakwater.co.uk for reference bearing in mind I haven't made up the above sub categories yet.

    Something else, if a customer comes along and purchases a product that is Non flammable and then another item that is flammable then the cart would need to be intelligent enough to realise that the non flammable product would go at the flammable postage rate which would be royal mail track and trace.
    Last edited by Nick1973; 15 Dec 2011 at 06:20 PM. Reason: Spelling Errors
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    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!]
    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. v154 shipping problem concerning shipping bij weight unit
    By cj.dekrijger in forum Built-in Shipping and Payment Modules
    Replies: 38
    Last Post: 22 Nov 2015, 09:45 AM
  2. Replies: 1
    Last Post: 16 Apr 2012, 08:05 PM
  3. 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
  4. "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

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