Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37
  1. #1
    Join Date
    Apr 2010
    Posts
    41
    Plugin Contributions
    0

    Default How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 items?

    Using v1.3.9e ZenCart
    http://www.waterweedmat.com

    I would like to sell 8 items via UPS according to their weight and destination - in addition to 1 item (a Rake) that I would like to ship at a flat rate (will go USPS but not necessary to calculate it through USPS).

    If the customer orders one or more of the first 8 items, they get charged by total weight - if they want to also purchase a Rake, they get charged the total weight of the other items (that ship UPS) PLUS the flat rate for the Rake that will ship separately (via USPS).

    How do I set this up?

    Thank you very much.
    Marlene

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

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    You could count the number of Rakes ...

    Let's say the Rake is products_id 27 and the charge is $12.50 per Rake, you can customize the code with the code in red:
    Code:
              $cost = preg_replace('/[^0-9.]/', '',  $cost);
    
    
    // bof: add Rake charge
    $chk_rakes = 0;
    $chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '27');
    $chk_rakes = $chk_rakes * 12.50;
    
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING + $chk_rakes) );
    // eof: add Rake charge
    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!

  3. #3
    Join Date
    Apr 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    Thank you for the code... I'd like to try that.
    What file do i put that into?

    Marlene

  4. #4
    Join Date
    Apr 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    I did donate for a Starbucks Coffee... or a regular coffee AND a Donut.

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

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    If you want to customize the USPS shipping module, then you would be customizing the file:
    /includes/modules/shipping/usps.php

    with the Rake with Product Weight 0, this will add to the shipping the charge per Rake that you setup ...
    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!

  6. #6
    Join Date
    Apr 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    Ok, but that means I would have to install the USPS module - which I would rather not do for one item. I just want to ship the rake at a flat rate - how I ship it can be transparent to the system - I can always put a "notice" on the item description that it will come in the mail.

    So I would be using the UPS module, only on the rake, I would be charging a flat rate vs. the other items that would be shipped according to weight and destination.

    Does that make sense?

    If I turn the weight off (to 0) on the rake - is there a way to add a charge for shipping or handling or whatever ... on just that one item?

    thanks again.

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

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    Sorry ... then use the UPS shipping module and adjust the code for it ...
    /includes/modules/shipping/ups.php
    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!

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

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    If you calculate the Rake charge with the custom code:
    Code:
    // bof: add Rake charge
    $chk_rakes = 0;
    $chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '27');
    $chk_rakes = $chk_rakes * 12.50;
    You can then add the $chk_rakes to the cost ...
    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!

  9. #9
    Join Date
    Apr 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    THANK YOU! Just saw that last response. :)

  10. #10
    Join Date
    Apr 2010
    Posts
    41
    Plugin Contributions
    0

    Default Re: How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 item

    Sorry to be so ignorant... but I really don't know what I'm doing.

    I added the code (that you wrote):

    // bof: add Rake charge
    $chk_rakes = 0;
    $chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '27');
    $chk_rakes = $chk_rakes * 14.95;
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING + $chk_rakes) );
    // eof: add Rake charge

    To the end (before the ?>) of the ups.php file that is in in the Includes>Modules>Shipping file.

    On my product (Water Weed Rake)... I changed the weight to 0.

    When I check out, it is still calculating a UPS charge (without a weight!) but not using the $14.95 Flat Rate.

    Do I have to change the "product_id" to '27' as you have in the code?... what is that? What else do I have to change in any of the files - or in the product itself.

    Appreciate your help!

    Marlene
    www.waterweedmat.com
    my email: [email protected]

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Can I apply Flat Rate to one Category & Zone, Per Weight for all other Categories?
    By BlackOrchidCouture in forum Built-in Shipping and Payment Modules
    Replies: 69
    Last Post: 10 Aug 2010, 10:23 AM
  2. How Can I Set a Flat Rate for shipping on 1 item and rest by weight ?
    By vividbreeze in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jan 2010, 05:26 AM
  3. Flat Rate for some products, ship by weight for other products
    By caspar in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Mar 2007, 01:12 AM
  4. Flat rate tied to item, UPS for the rest
    By Hazmat in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 26 Mar 2007, 07:59 AM

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