Thread: Bulk Shipping

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Bulk Shipping

    Hi, I've been going crazy trying to find a way to set up special shipping. I sell turtles. http://www.theturtleguys.com I want 3 different types of shipping. The flat rate 20 dollar shipping, a 50 dollar two day shipping, and a 100 dollar over night shipping. The two day and over night are for orders with a count of 100 or more. I looked around the forum and learned about the MZMT module. I downloaded it and installed it. It installed just fine, but I'm kind of new to this aspect of web design and I'm not sure how to make it (or anything else) work just the way I want it to. If someone could give a slightly detailed walkthrough, I'd appreciate it. Thanks

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

    Default Re: Bulk Shipping

    You are combinging a couple choices here ...

    Always show $20 shipping ... assuming slow boat to china

    Always show $50 shipping ... 2 day

    Always show $100 shipping ... overnight ... but only on orders of 100+ items

    Is this what you mean? Or could you break it down and type a little slower ...
    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!

  3. #3
    Join Date
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Re: Bulk Shipping

    That's exactly right. Can you give me some detailed instructions?

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

    Default Re: Bulk Shipping

    You need to get creative here, as you have mixed criteria for your shipping ...

    2 of these are just displays all of the time, while the 3rd is dependant on number of items ...

    If you were to copy:
    /includes/modules/shipping/flat.php
    /includes/languages/english/modules/shipping/flat.php

    To the filenames:
    flatground.php
    flattwoday.php

    Then edit the files sets and replace all:
    flat with flatground
    FLAT with FLATGROUND

    flat with flattwoday
    FLAT with FLATTWODAY

    Those are case sensative and must be done in both the code and language files ...

    Then make sure that the plain flat.php is NOT installed ...

    Install those two ... you should now see both in checkout ...

    The 100+ item shipping is a little trickier ...

    Here you also need to make sure that the number of items in the cart is >= 100

    You will notice in the flat.php that there is a function to control the $this->enabled based on shipping settings using the a function:
    PHP Code:
          // 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 you were to copy flat.php to flat100.php and do the global replaces for flat to flat100 and FLAT to FLAT100 ... you would then need to make your own function to test how many items are in the cart, and if $_SESSION['cart']->count_contents() >=100 then you would allow this to show by having a function test that value and return true when allowed and return false when not allowed ...

    Look at how the current function is written for the catalog and admin for:
    function zen_get_shipping_enabled

    You can find where that function is located using the Tools ... Developer's Tool Kit ... and searching in the bottom input box for:
    function zen_get_shipping_enabled

    And then, select Catalog/Admin from the dropdown and click search ...
    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
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Bulk Shipping

    By copy ____ to ########## you mean copy and rename?

  6. #6
    Join Date
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Bulk Shipping

    Then edit the files sets and replace all:
    flat with flatground
    FLAT with FLATGROUND

    flat with flattwoday
    FLAT with FLATTWODAY
    Think you could elaborate?

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

    Default Re: Bulk Shipping

    No ... I mean literally copy the files:

    /includes/modules/flat.php
    /includes/languages/english/modules/flat.php

    To the files:
    /includes/modules/flatground.php
    /includes/languages/english/modules/flatground.php

    /includes/modules/flattwoday.php
    /includes/languages/english/modules/flattwoday.php

    /includes/modules/flat100.php
    /includes/languages/english/modules/flat100.php


    Then edit each file group and do a global replace on:
    flat
    FLAT

    With the proper matching word:
    flatground
    flattwoday
    flat100

    FLATGROUND
    FLATTWODAY
    FLAT100

    Then write a function to manage the item count >= 100 to control when the flat100.php shipping module shows ...
    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!

  8. #8
    Join Date
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Bulk Shipping

    This is way over my head, but nobody else is gonna do it for me. Hopefully you're okay with newbs and don't mind answering dumb questions often.

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

    Default Re: Bulk Shipping

    Well ... you can dive in and pretend to be a coder ...

    Or, you can always hire someone to do the work for you and get the 3 shipping modules made the way you want them to work ...
    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!

  10. #10
    Join Date
    Sep 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Bulk Shipping

    If you were to copy flat.php to flat100.php and do the global replaces for flat to flat100 and FLAT to FLAT100 ... you would then need to make your own function to test how many items are in the cart, and if $_SESSION['cart']->count_contents() >=100 then you would allow this to show by having a function test that value and return true when allowed and return false when not allowed ...

    Look at how the current function is written for the catalog and admin for:
    function zen_get_shipping_enabled

    You can find where that function is located using the Tools ... Developer's Tool Kit ... and searching in the bottom input box for:
    function zen_get_shipping_enabled

    And then, select Catalog/Admin from the dropdown and click search ...
    I did what you said about looking for the function, found it, and see what you're talking about. I'm not sure what to do with it now that I've found it though.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Bulk Weight Changes and Shipping
    By Christian_Wagner in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 May 2013, 08:15 PM
  2. v151 UPS - bulk/discount shipping price configuration
    By bobmeetin in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Jan 2013, 06:24 PM
  3. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  4. Bulk edit on "Yes Always Free Shipping"
    By RetailProductsGroup in forum Basic Configuration
    Replies: 5
    Last Post: 4 May 2012, 10:33 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