Page 6 of 6 FirstFirst ... 456
Results 51 to 60 of 60
  1. #51
    Join Date
    Jan 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Minimum shipping fee

    I enabled the perweightunit shipping and I changed the code and got a shipping cost of $12. My units are all set to 1, shipping cost per unit set to 4.

    My shipping cost per item needs to be $4, but min shipping charge is $20.

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

    Default Re: Minimum shipping fee

    Sorry I boo booed ...

    Try this code:
    Code:
        $total_weight_units = $shipping_weight;
        // bof: minimum 20.00
        if ($total_weight_units < 20) {
          $total_weight_units = 20;
        }
        // eof: minimum 20.00
    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. #53
    Join Date
    Jan 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Minimum shipping fee

    Still isn't working right, now shipping is $20 regardless how many items are in the cart.
    Is there a way to make this work using the item module rather than perweightunit module since I don't ship by weight?

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

    Default Re: Minimum shipping fee

    See if this works on the Item Rate item shipping module:
    Code:
          $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) < 20.00 ? 20.00 : (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: 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!

  5. #55
    Join Date
    Jan 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Minimum shipping fee

    That's what I was looking for! Thanks!

  6. #56
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Minimum shipping fee

    Linda:

    Did you already post the mod for 139h?

    I had it working for 138 and ow need to do the same for 139. Thanks!
    Cheers!
    v2.0+

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

    Default Re: Minimum shipping fee

    You lost me ...

    This is a customization to the shipping ...

    Customization of v1.3.8 vs v1.3.9 would be similar ...

    What is it you are asking?
    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. #58
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Minimum shipping fee

    I was under the impression from some of the 139 mods that not all the duplicate files of 138 need to be messed with in 139.

    So It is still just the same usps.php that is tweaked?
    Cheers!
    v2.0+

  9. #59
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Minimum shipping fee

    Found it and fixed it. Thanks for brightening the light bulb, Linda.

    includes/modules/shipping/usps.php


    /*
    $methods[] = array('id' => $type,
    'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
    'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    */
    /*
    $cost = preg_replace('/[^0-9.]/', '', $cost);
    $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) );

    }

    $this->quotes['methods'] = $methods;
    */

    /* Minimum USPS Shipping */
    if ($cost < 6.00) {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => (6.00 + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    } else {
    $methods[] = array('id' => $type,
    'title' => $title,
    'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
    }
    }

    $this->quotes['methods'] = $methods;
    /* EOF Minimum USPS Shipping */
    Cheers!
    v2.0+

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

    Default Re: Minimum shipping fee

    As long as you are using the January 2, 2011 C from post #26 from:
    http://www.zen-cart.com/forum/showthread.php?t=171314

    Then you have the latest USPS version that we have released ...

    NOTE: this came out after v1.3.9 ...
    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!

 

 
Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. Minimum Order Fee module
    By jdw1979 in forum General Questions
    Replies: 13
    Last Post: 30 Nov 2011, 04:44 PM
  2. Minimum FIRST TIME order fee
    By jdw1979 in forum General Questions
    Replies: 20
    Last Post: 2 Nov 2011, 05:37 PM
  3. Minimum Order Fee
    By prosam in forum Managing Customers and Orders
    Replies: 5
    Last Post: 17 Jun 2008, 04:35 PM
  4. Set minimum shipping fee
    By mattys in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 5 Jan 2007, 11:03 AM
  5. Added charge, one-time deposit/fee, minimum order
    By Pozitech in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Nov 2006, 03:40 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