Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    3
    Plugin Contributions
    0

    Default Shipping Different for each item

    I have a customer that wants to use zen cart but has a strange shipping arrangement. Each item may have a different shipping cost. I figured that I could use the per unit module and set the shipping cost in the weight field, but here's the catch:

    If someone order 2 or more items, she wants the highest shipping amount + $2.50 for each additional item.

    For example, if someone orders 2 items - the first costing $8.50 to ship and the second costing $5.50 to ship, she wants me to take the $8.50 + $2.50 for the additional item.

    I wish I could combine the per unit and per item methods. :)

    Is there a way to do this in zen cart?

    If not, can you point me to the place where I could change the code? I am a php programmer, but I figured you could point me to the correct file to change quicker than I could find it. :)

    Thanks,

    Cindy

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Shipping Different for each item

    <rant> Geeze, clients that come up with this ridiculously complicated shipping things... </rant>

    Sorry I can't help you with the code.

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

    Default Re: Shipping Different for each item

    It could be done ... but would take some customization to the code ...

    This is not currently an available Shipping method as I do believe your client ..,. ummm ... made it up ...

    But, it can be written to behave in this manner if you really need to have the custome code working in this fashion ... just depends on how much your client is willing to invest in having it customized ...
    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
    Sep 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Shipping Different for each item

    Is this something I could change? If so, can you tell me which part of the code I should change? Like I said, I'm a php programmer, but not familiar with zen cart. Can you point me to the code I would need to customize?

    And yes she did make it up. I was going to write a custom shopping cart, but ran across zen cart and liked what I saw. I think it will come awfully close to what she wanted me to write.

    Thanks,

    Cindy

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

    Default Re: Shipping Different for each item

    You would use something like perweightunit.php and see how it manages a differnt type of calculation on the weight ...

    You would need a totally different calculation for this to determin the highest charge then calculate from there ...

    Then you can use the products_weight as the actual shipping charge and your calculation would determin who is highest of all the products, then use that to build your calculation ...
    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
    Sep 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Shipping Different for each item

    Quote Originally Posted by Ajeh
    You would use something like perweightunit.php and see how it manages a differnt type of calculation on the weight ...

    You would need a totally different calculation for this to determin the highest charge then calculate from there ...

    Then you can use the products_weight as the actual shipping charge and your calculation would determin who is highest of all the products, then use that to build your calculation ...

    I got it working! Thank you very much!

    Just for the record, I had to change shopping_cart.php class to add a variable for the highest_shipping_price

    I changed the calculate method to find the highest shipping weight (price)

    I changed the checkout_shipping header to add a global variable for the highest shipping price

    And I changed the perweightunit to calcluate the highest shipping weight + (number of items - 1) * 2.50 + handling

    Works like a charm. :)

    Now I just need to figure out how to take the shipping weight off the product listing screen so that it doesn't confuse the buyer. I could go through all the templates, but I'm guessing there is a switch somewhere in zen cart to keep the shipping weight from showing. I just haven't found it yet.

    Thanks again,

    Cindy

 

 

Similar Threads

  1. Different Shipping for each item
    By jweb1369 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 24 May 2010, 10:45 PM
  2. Shipping - Different Flat Rate Freight Cost For Each Item
    By Donn in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 1 May 2009, 03:06 PM
  3. Different Shipping Rates for each item
    By shiftautosports in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 18 Mar 2008, 08:36 PM
  4. a different shipping price for each item
    By [email protected] in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 10 Mar 2008, 01:21 AM
  5. shipping different $ for each additional item
    By parmax in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 17 Mar 2007, 02:56 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