Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2008
    Posts
    26
    Plugin Contributions
    0

    Default Need UPS for everything, but added option as well.

    I have UPS working fine on my site. I have smaller products too and would like to offer USPS First Class for ONLY products under 1lb set at $3.49. I also would like to have USPS Priority Mail for ONLY products under 1lb set at $4.95.

    How would i do this?

    Example:

    Product < 1Lb Options:
    First Class USPS = $3.49
    Priority Mail USPS = $4.95
    UPS OPTION 1
    UPS OPTION 2
    UPS OPTION 3

    Product > 1Lb Options:
    UPS OPTION 1
    UPS OPTION 2
    UPS OPTION 3

    Thank to anyone who knows how to help.

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

    Default Re: Need UPS for everything, but added option as well.

    You would need to customize the USPS shipping module further for these specifics to be included ...
    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
    Jun 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Need UPS for everything, but added option as well.

    Which is why i'm a member of these forums.

    Anyone have any ideas on how to do this?

    Thanks for the help guys.

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

    Default Re: Need UPS for everything, but added option as well.

    Maybe you could explain what UPS Options 1 - 3 are in relation to USPS ...

    Are you wanting real USPS or something that reads as USPS with those rates based on the weight being < 1lb ...

    What happens at exactly 1 lb, you only show less than or greater than 1 lb?

    Did you try setting up USPS with just those 2 options selected and test the shipping to see what happens? NOTE: the actual rates for USPS will show ...
    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
    Jun 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Need UPS for everything, but added option as well.

    Forget about UPS. That's already set up.

    I need products under 1 lb to show up with the option USPS and another one to show up as USPS for 1lb and over where i can set the prices for each. Fixed rates.

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

    Default Re: Need UPS for everything, but added option as well.

    Then what would work best is to clone Flat Rate flat and make 2 new modules from that where you can then set the Flat Rate for this and set a condition on the $this->enable to be true when the weight is < 1 lb and >= 1 lb on the other ...

    Look inside the flat.php and you will see where there is currently an IF statement around the $this->enable to skip the module based on Free Shipping ...

    You can do something similar to moderate which one shows when based on the weight ...

    A search on:
    clone flat

    will help you in how to make a proper clone of Flat Rate such as flatunder.php and flatover.php ... then change the language files to read as you need them ...
    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!

  7. #7
    Join Date
    Jun 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Need UPS for everything, but added option as well.

    Did some searching.. Found people with problems, and confusing ways to fix them.

    If someone could point me step by step on how to make two flat rate shipping options that only show up if the product is under 1lb, then please do.

    Thanks again.

  8. #8
    Join Date
    Jun 2006
    Posts
    157
    Plugin Contributions
    0

    Default Re: Need UPS for everything, but added option as well.

    Clone flat.php shipping module, first.

    Copy the files:
    /includes/modules/shipping/flat.php
    /includes/languages/english/modules/shipping/flat.php

    to the new filenames for under 1lb to:
    /includes/modules/shipping/flatunder.php
    /includes/languages/english/modules/shipping/flatunder.php

    and to the new filenames for over or equal to 1lb to:
    /includes/modules/shipping/flatover.php
    /includes/languages/english/modules/shipping/flatover.php

    In the flatunder.php files, you need to change all flat to flatunder and all FLAT to FLATUNDER, these are case sensative changes.

    In the flatover.php files, you need to then change all flat to flatover and all FLAT to FLATOVER, again, these are case sensative changes.

    Next, you need to manage these files so that they work based on the current shipping weight and so that the modules can work in the admin as well for configuring them.

    To manage the weight in flatunder.php change the code from:
    PHP Code:
          // disable only when entire cart is free shipping
          
    if (zen_get_shipping_enabled($this->code)) {
            
    $this->enabled = ((MODULE_SHIPPING_FLATUNDER_STATUS == 'True') ? true false);
          } 
    to include the code beneath it:
    PHP Code:
          // disable only when entire cart is free shipping
          
    if (zen_get_shipping_enabled($this->code)) {
            
    $this->enabled = ((MODULE_SHIPPING_FLATUNDER_STATUS == 'True') ? true false);
          }

    // hide if greater than or equal to 1lb
          
    if (IS_ADMIN_FLAG == false && $_SESSION['cart']->weight >= 1) {
            
    $this->enabled false;
          } 
    You can then do something similar to manage the flatover.php for < 1 lb.

 

 

Similar Threads

  1. v151 Need UPS or FedEX added for my shipping
    By awk_grep in forum Addon Shipping Modules
    Replies: 4
    Last Post: 17 Dec 2013, 02:51 AM
  2. Zones Rates module calculates by weight and country, but I need dimension as well!
    By bodkin77 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 27 Jul 2013, 11:50 AM
  3. Adding new products to catalogue but attributes are added as well?
    By Frano in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 30 Sep 2008, 12:09 PM
  4. Everything was going so well and then .....
    By johnd in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Jul 2007, 01:16 AM
  5. Stripping Zen of...... ......... Well.... Everything
    By Turtleman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Feb 2007, 01:00 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