Page 1 of 9 123 ... LastLast
Results 1 to 10 of 848

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,970
    Plugin Contributions
    109

    Default Quantity Discounts for 1.3

    My quantity discounts module has been posted in

    http://www.zen-cart.com/index.php?ma...roducts_id=235

    You may discount by item, by category or by total items in cart, in either percentages or currency units. Up to five discount levels are provided. A link is given on the checkout page to show the customer how the discount was calculated.

    Please follow up here for support.

    Thanks,
    Scott (swguy)

    PS> One bug has been found already; for those who are using discount by total items in cart, please make this change:

    change l. 149-151 from

    if ($count < $this->total_level_1)
    continue;
    $disc_amount = $this->total_discount_1;

    to

    if ($count < $this->total_level_1)
    $disc_amount = 0;
    else
    $disc_amount = $this->total_discount_1;
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

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

    Default Re: Quantity Discounts for 1.3

    You have an interesting idea here, however ...

    From a naming convention standpoint, you have broken pattern that could lead to conflicts with other Order Total Modules ...

    You will notice how there is a pattern to the naming of the constants ...

    You really want to maintain that pattern so that the module more or less "owns" the pattern ...

    First you use this pattern:
    MODULE_ORDER_TOTAL_QUANTITY_DISCOUNT_blah

    But then you leap to:
    MODULE_ORDER_TOTAL_LEVEL_blah

    Then to:
    MODULE_ORDER_TOTAL_DISCOUNT_blah

    You may want to give that a think through and re-establish a pattern that more or less "belongs" to this Order Total Module so that there is less likelyhood of a colision in the configuration table or in the running of the module ...

    Thanks again for the contrib ... looks interersting ... :)
    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
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,970
    Plugin Contributions
    109

    Default Re: Quantity Discounts for 1.3

    Doooh! I thought I had changed that. You are absolutely right - database variables must stay in their own name space to prevent collisions. I will fix this in the next release and provide a cleanup procedure for people to get rid of the old variables.

    Thanks,
    Scott
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  4. #4
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    273
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Hi,

    Thanks for the contribution. I'm a new member and 'making' my way through a setup of Zen-Cart to replace my aging ws4d ecommence system.

    I've tested your quanity discount submission, but I cannot get the category discount to work at all.
    I added 3 items from the same category into my cart (which is calculated to discount 10%) but it won't discount it.
    I changed over to Order Discount and that works correct.

    Most importantly my question is this, can I assign an off/on to EACH category with the Quantity discounting module you created, or can it be modified to contain this?

    I need some categories WITH this discounting and others with standard prices without discounts.

    thanks so much,

    Jeff Michaels
    pres of Musical Creations Ltd.
    Cary NC

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,970
    Plugin Contributions
    109

    Default Re: Quantity Discounts for 1.3

    To turn discounting on or off for particular items or categories, you'd have to
    extend the code. In the next release (just a couple of weeks out), I'll mark specific places in the code where you can do this.

    As to why it's not working: please check your settings and ensure they are:
    discount units: percentage; discount basis: total by category; discount level 1: 3 (or 2); discount amount 1: 5. Then check the products themselves: when you go to admin->catalog->categories/products go to the category you want and make sure
    all three items are in that category. (Oh, one more thing: are you running
    ZenCart 1.3?)

    Thanks,
    Scott
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  6. #6
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    273
    Plugin Contributions
    0

    Idea or Suggestion Re: Quantity Discounts for 1.3

    I think I know why it didn't work under categories....

    I had all the test items gathered from the Hardware master category, but they were also from different sub-categories within Hardware. I guess they all have to be from the same sub-category also.

    Here's what I'd like to do (and I'm currently doing in my old site). I have 5 discounts for mp3 downloads, 5 discounts for songs shipped on custom CDs (both by quantity level) and NO quantity discount for collection CDs and CDGs that are purchased on my site. This was all done under WS4D ecommerce back in 2004. The programmer has now disappeared, so I can't make any internal changes to the code (compiled). I've been looking for a solution to host on my OSX server for about a year and discovered Zen-Cart about a week ago. It does nearly everything I need out of the box...plus more. With 67,000 karaoke products and a current Filemaker Pro database in the office, it'll take till the end of this year to get it all up and running. I got the Filemaker to SQL transfer solved this past weekend with a plugin. Now, it's just the flow of the entire website that needs a lot of planning on paper before I actually begin to really import. The Quanity Discount module you created is one of many solutions that will make this happen for me.

    thanks,
    Jeff Michaels
    http://www.musicalcreations.com

  7. #7
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    772
    Plugin Contributions
    0

    red flag Re: Quantity Discounts for 1.3

    Does anyone know how to show the quantity discount on the shopping cart page after adding products? At the moment, it only shows up during checkout (towards order confirmation page). Thanks.
    Using zencart v.1.3.9e
    Website: http://www.dealbyethan.com
    Email: admin AT dealbyethan DOT com

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,970
    Plugin Contributions
    109

    Default Re: Quantity Discounts for 1.3

    PM me for details.

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  9. #9
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I'm wondering if there has been any progress on the tax calculations. Is there some file editing I can do?

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,970
    Plugin Contributions
    109

    Default Re: Quantity Discounts for 1.3

    Can you be more specific about what you mean by the tax calculations? What do you believe is wrong?

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

 

 
Page 1 of 9 123 ... LastLast

Similar Threads

  1. v153 quantity discounts for attributes
    By delia in forum General Questions
    Replies: 1
    Last Post: 14 Oct 2014, 02:34 PM
  2. v150 Quantity Discounts for shipping 1.5
    By jpmill in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 7 Apr 2013, 05:28 PM
  3. v150 Quantity Discounts for 1.5?
    By mobishelf in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 21 Feb 2012, 12:40 AM
  4. Hide quantity discounts for general customers, show for groups only?
    By swamyg1 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 16 Nov 2009, 09:22 PM
  5. Quantity Discounts for Sets?
    By mwlahn in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 30 Mar 2008, 07:39 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