Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Shipping based upon quantity

    I have a module we've pieced together on another thread.

    There is a problem:
    'Aprons' => array(
    'base' => 28.6,
    'extra' => 6.6,
    'ids' => array(1, 3, 2, 7)


    If I test run my cart and "check out" with one quantity of #1 and two quantities of #7 it charges 'base' twice plus one 'extra' INSTEAD of one 'base' and two 'extra's.

    http://quebecinter.net/regaliax/incl...temcanada.phps

    Does any one see any gaping holes? It is based upon a per-item module. In this case it parses a string "'Apron'. If exists, it assigns a base price for shipping and an 'extra' charge for items more than one. It is supposed to restrict itself to product ids 1, 3, 2, 7.

    I can code a bit, but was never good at arrays.

    John

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

    Default Re: Shipping based upon quantity

    Cannot test it ... there appears to be Zones set on your shipping module and none are showing ...
    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
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Shipping based upon quantity

    For itemcanada I set the shipping zone to Canada.
    It should test ok for these four items at least:
    http://quebecinter.net/regaliax/inde...=index&cPath=1
    It is also the only shipping module I have turned on,
    John

    Per Item Shipped to Canada

    Enable Item Shipping
    True

    Shipping Cost
    0

    Handling Fee
    0

    Tax Class
    --none--

    Tax Basis
    Shipping

    Shipping Zone
    Canada

    Sort Order
    0

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

    Default Re: Shipping based upon quantity

    What is happening is that your Products have Attributes ...

    So there are 2 Products when you add products_id 1 with 1 Attribute and add products_id 1 with another Attribute ...

    So, this counts as 2 base charges with the extra charge * 0 so you get the double base 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!]
    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
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Shipping based upon quantity

    Quote Originally Posted by Ajeh View Post
    What is happening is that your Products have Attributes ...
    Any suggestions for a work around? I thought it was reading the title. You say it is reading the title twice because of the attributes, if I follow?

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

    Default Re: Shipping based upon quantity

    Login to your account as a customer and add the Product with products_id 1 first with 1 Attribute and then with the other Attribute ...

    Now look via phpMyAdmin at the customers_basket and customers_basket_attributes ...

    You will see 2 records ...

    So this is counting as 2 separate Products ...

    Your array scheme does not take that into account when counting how many are being purchased as it looks like 2 products vs 1 product with different attributes ...

    I don't have a simple solution for you on redoing this array count to address Products with Attributes as by design it is addressing each entry in the Order vs how many Products regardless of attributes ...

    It can be done but it will take more customization to reach that point ...
    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
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Shipping based upon quantity

    Name your price :)

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

    Default Re: Shipping based upon quantity

    Time is more the issue ... though price plays some of it ...

    Perhaps these kind folks working on this can take this a step further and manage Products with Attributes on that array sort method ...
    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!

  9. #9
    Join Date
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Shipping based upon quantity

    I'm open to suggestions. The basic premise of what it should do is what I need.

  10. #10
    Join Date
    Mar 2007
    Posts
    73
    Plugin Contributions
    0

    Default Re: Shipping based upon quantity

    It's just one of those things that just needs to get done before I launch my new cart in end of February. I'm in over my head. And It will make a great module to share after, I hope. One of things I hope to have done yesterday :)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Shipping based upon Category
    By Stumpy74 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Jan 2010, 05:52 PM
  2. Payment based upon shipping option
    By mrmyles in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 17 Aug 2009, 05:09 AM
  3. Shipping Quantity rate based shipping by category
    By arbocmata in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 Jan 2009, 07:11 PM
  4. shipping based on quantity
    By mohnish2008 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 21 Jan 2008, 09:24 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