Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Plugin Contributions
    0

    red flag Require UPS 2nd Day Air based on Category of Item

    OK my store is running Zen Cart 1.3.8a.

    If someone purchases items belonging to specific categories, those items MUST be sent by UPS 2nd day air, with a surcharge.

    All other categories the customer may choose UPS 2nd day air or UPS ground.

    This version of Zen Cart does not support this. Is there a way to make this work? This is kind of time-critical; the client was using rather terse and vehement words about this.

    I would be very grateful for any assistance.

  2. #2
    Join Date
    Feb 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Require UPS 2nd Day Air based on Category of Item

    Any ideas?

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

    Default Re: Require UPS 2nd Day Air based on Category of Item

    In the UPS shipping module you will see the code for:
    Code:
            if (!in_array($type, $allowed_methods)) continue;
            // EOF: UPS USPS
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
    You can add other tests to control when the $methods[] is added on to based on the current $type being processed and disable them or add on the the charge etc.
    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.5]
    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
    Feb 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: Require UPS 2nd Day Air based on Category of Item

    Please forgive me...I am new to modifying Zen Cart's internal files. I am not used to this; I write straight-through PHP scripts that are often self-contained in one file and don't contain classes.

    * What is $type?

    Here's my dilemma:

    * The client is a gun shop.
    * All handguns MUST be shipped UPS 2nd day air, as required by law.
    * All other items have the option of UPS Ground.
    * Zen Cart doesn't natively support this requirement, so people are buying handguns and choosing (and paying for) UPS Ground.
    * The shop still must ship 2nd day air.
    * Therefore, they lose about $20 per handgun sold online.

    They want a way to ensure that those who buy handguns MUST have their orders shipped 2nd day air.

    There isn't a category called "Handguns" in the shop; the 1500-some guns are categorized by manufacturer.

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

    Default Re: Require UPS 2nd Day Air based on Category of Item

    Is there anything specific that can be tested for in the products table to determine if a Product is a gun or not?

    Example:
    products_model
    master_categories_id

    etc. etc. or can you add in a new field that can be used to mark what products are guns and which are not?

    You mentioned manufacturer ...

    Are all Products from specific manufacturers_id "only" guns and "never" any other kind of Product?
    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.5]
    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. UPS shipping - category specific 2 Day Air option only
    By danwebman in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 11 Dec 2009, 12:30 PM
  2. Shipping problems - UPS only giving Next Day and 2nd day?
    By ijarofjami in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 3 Oct 2009, 04:13 AM
  3. One Flat Rate Shipping Table w/ 2nd Day Air and Next Day Air Options
    By Computra in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 13 Feb 2009, 08:16 PM
  4. ups next day and 2nd day air charges
    By anthobf in forum Addon Shipping Modules
    Replies: 3
    Last Post: 30 Aug 2006, 08:47 PM
  5. ups next day and 2nd day air charges
    By anthobf in forum General Questions
    Replies: 1
    Last Post: 24 Aug 2006, 01:34 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR