Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    help question subtract weight or tare per item in cart

    is there a way i can change some script to tell zen cart to multiply the tare or negative tare rather, by how many items are in the shopping cart?

  2. #2
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: subtract weight or tare per item in cart

    per additional item after the first item,
    like 1.5 lbs per item after first.

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

    Default Re: subtract weight or tare per item in cart

    Using the Developers Tool Kit ... do a search on:
    SHIPPING_BOX_WEIGHT

    This will show you all of the files where the Tare is addressed and you can customize that the way you need it ...
    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
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: subtract weight or tare per item in cart

    can anyone give me any idea of the code format i would use for taking off 1.5 lbs per each additional item in shopping cart after the first item?

  5. #5
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: subtract weight or tare per item in cart

    maybe multiplying the tare by -1.5?

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

    Default Re: subtract weight or tare per item in cart

    In the shipping.php class the Tare is handled:
    Code:
          switch (true) {
            // large box add padding
            case(SHIPPING_MAX_WEIGHT <= $shipping_weight):
              $shipping_weight = $shipping_weight + ($shipping_weight*($zc_large_percent/100)) + $zc_large_weight;
              break;
            default:
            // add tare weight < large
              $shipping_weight = $shipping_weight + ($shipping_weight*($zc_tare_percent/100)) + $zc_tare_weight;
              break;
          }
    you need to adjust the formula for how the $shipping_weight is managed based on the Tare ...
    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!

  7. #7
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: subtract weight or tare per item in cart

    well, i'm retarded, all I had to do was set the product weight to 1.5 lbs less, and put in a positive tare weight of 1.5 lbs; I swear I tried that before and it didn't work, oh well, I only lost 3 days worth of work. Se la vi.

 

 

Similar Threads

  1. v151 Tare Weight / Maximum Package Weight Functionality Change Help
    By jbible in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 17 Jan 2013, 07:17 PM
  2. Per item and weight
    By wotnow in forum General Questions
    Replies: 6
    Last Post: 24 Oct 2011, 01:34 AM
  3. Weight per Item?
    By Ambitions in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 17 May 2010, 11:15 PM
  4. Price Per Item / Weight
    By glenelkins in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 May 2008, 03:46 PM
  5. Pricing Per Weight / Item
    By glenelkins in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 May 2008, 12:44 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