Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    Phoenix, AZ
    Posts
    6
    Plugin Contributions
    0

    Default Using USPS single rate box for various quantities.

    My customer is using USPS flat rate boxes to ship out their product. They can get approximately 12 items in each box. Each box costs about six dollars to send. I am trying to figure out a way to charge the customers for shipping based on those facts.
    If they ship from 1 to 12 items they get charged six dollars. If they ship from 13 to 24 items they get charged $12, etc.
    This is only one type of product they have. Other products are shipped using regular UPS by weight.

    I am up for any creative ideas you might have.

    Thanks ahead of time.

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

    Default Re: Using USPS single rate box for various quantities.

    You can customize the UPS shipping module to count how many of the 1 Product is in the cart and build a calculation on the every charge add $6.00 to the UPS shipping ...

    Set this Products weight to 0 so that it does not get charged by UPS and then add the calculated cost based on how many are in the cart of this 1 Product to the $cost in the UPS shipping module ...
    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
    Jan 2009
    Location
    Phoenix, AZ
    Posts
    6
    Plugin Contributions
    0

    Default Re: Using USPS single rate box for various quantities.

    My client is using USPS and not UPS. I looked in the USPS module but didn't really see any kind of options at all for customization.

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

    Default Re: Using USPS single rate box for various quantities.

    You technically are not then getting a Real Time quote from USPS but rather saying on the screen:
    USPS shipping $XX.XX

    This can be done with the Item Rate item shipping module but you need to customize it to take the item quantity and divide it by 12 and round up on the result and multiply by 6.00 to get the shipping cost ...

    This can be best done by setting the Item Rate to 6.00 and then customizing the code to change the count of how many are in the cart to be divided by 12 and multiplied by this rate ...

    You need to customize this section of the code in the Item Rate item shipping module:
    Code:
          // adjusted count for free shipping
          $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items();
          $this->quotes = array('id' => $this->code,
                                'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE,
                                'methods' => array(array('id' => $this->code,
                                                         'title' => MODULE_SHIPPING_ITEM_TEXT_WAY,
                                                         'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING)));
    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. Replies: 2
    Last Post: 23 Nov 2013, 02:38 AM
  2. Using USPS RateV4 by Marco with custom flat rate box
    By bpoilspill in forum Addon Shipping Modules
    Replies: 1
    Last Post: 13 Jan 2012, 04:47 PM
  3. Shipping Defaults to USPS when Using Both Zone Rate and USPS
    By thegoodlifestore in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 Dec 2010, 05:41 PM
  4. USPS domestic flat rate box I see it for international
    By cshart in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 22 Nov 2010, 08:53 PM
  5. Using fractions for product quantities
    By kits1 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 9 May 2008, 11:19 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