Page 1 of 83 1231151 ... LastLast
Results 1 to 10 of 821
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,336
    Plugin Contributions
    253

    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, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,474
    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
    6,336
    Plugin Contributions
    253

    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, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  4. #4
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    254
    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
    6,336
    Plugin Contributions
    253

    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, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  6. #6
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    254
    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
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,336
    Plugin Contributions
    253

    Default Re: Quantity Discounts for 1.3

    Interesting ... I considered adding subcategory support, but I thought for the first release that I would just use categories. Sub-category fans, please speak up
    and let me know how you want this to work.

    I'm pretty close to wrapping up version 1.1, which has support for user exits to easily modify discounts for specific items and categories and to allow certain categories and items to be excluded from discounting. I'm hoping to release this before the 8/25. I'll collect up the subcategory feedback I'm getting and do a follow up release a few weeks after that. Thanks!

    Good luck,
    Scott
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  8. #8
    Join Date
    Aug 2006
    Location
    North Carolina
    Posts
    254
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I just added a bunch of 'mice' from the Hardware category and the discounting worked.
    If I add 3 different items from Hardware, but each under different sub-categories, it will not disount.

    It seems you have sub-category discounting enabled already, not the master category.

    This wouldn't be a problem for me when the 1.1 release allows me to turn on/off which parts I want to use under Quantity Discounts. Currently, it doesn't work for me as is. (I'm in the concept stage anyway, so no 'biggie' yet).

    Quick side note: Do you know if "music genre", "record artist" and "record companies" can be added as separate searched in the Advanced Search? I'd like to first make them: Collection Title, Song Title, Artist (and others). This is critcal to my new site and will probably need custom programming help with.

    Example is at: http://www.kararokewh.com
    on top left with their QuickSearch.... more in their Advanced Search.


    thanks,
    Jeff Michaels

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,336
    Plugin Contributions
    253

    Default Re: Quantity Discounts for 1.3

    Hi Jeff! Please PM me with your email address so we can discuss.

    Thanks,
    Scott
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,336
    Plugin Contributions
    253

    Default Re: Quantity Discounts for 1.3

    I think there is some interest in setting discount thresholds by DOLLARS SPENT,
    not by quantities of items where dollars spent (or other currency spent) could be tracked by item, by category, or by total number of items in the cart. It's not a hard change either - in fact, the only thing I'm having trouble with is thinking about what to call it! So if you want to discount by dollars and not by item count, please speak up and let me know what what you think the config item name should be, and any other config you think is needed.

    Thanks,
    Scott
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

 

 
Page 1 of 83 1231151 ... 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