Page 34 of 85 FirstFirst ... 2432333435364484 ... LastLast
Results 331 to 340 of 849
  1. #331
    Join Date
    Oct 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Nevermind, I see the page for that, discount preview!
    http://www.thatsoftwareguy.com/zenca...t_preview.html

    I will have to add that someday!
    My zen cart is being rebuilt!! www.nicecarvings.com
    The Quantity Discount Mod is working great!
    www.thatsoftwareguy.com/zencart

  2. #332
    Join Date
    Apr 2008
    Location
    Lancaster, CA
    Posts
    42
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I'm trying to set a discount for a specific product; I added the following code to the "apply_special_item_discount()" function:
    case 397:
    if ($count > 3 and $count < 6) {
    $disc_amount = 6;
    }
    elseif($count > 6) {
    $disc_amount = 12;
    }
    break;

    But it's not working! Am I missing something, did I miss a step?

  3. #333
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,312
    Plugin Contributions
    125

    Default Re: Quantity Discounts for 1.3

    Remember that apply_special_item_discount can only be used with Discount Basis "Total By Item." I suspect you're using a different basis.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #334
    Join Date
    Apr 2008
    Location
    Lancaster, CA
    Posts
    42
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Here's a screenshot of my settings, let me know if you need to see anything else.
    Attached Images Attached Images  

  5. #335
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Where do I specify which categories to exclude from the discount? I just installed your most recent version.

    I've looked in your info, but can't figure out where to do it.

    Thanks!

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

    Default Re: Quantity Discounts for 1.3

    Quote Originally Posted by tracib View Post
    Where do I specify which categories to exclude from the discount?
    The exclude_category function allows you to exclude categories which should not be discounted.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #337
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Quote Originally Posted by swguy View Post
    The exclude_category function allows you to exclude categories which should not be discounted.
    So, I need to change the actual files? It's not something I do through the admin page of my cart?

    Also, I'm looking at the info on your website. Do I need to paste in the patch that you mentioned (above the calculate_decuctions() )?

  8. #338
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I found where to do this in the php file, starting with line 190:

    // Add categories you wish to exclude to exclude_category()
    if ($this->exclude_category($products[$i]['category'])) {
    continue;

    and the category I want to exclude is #111, but I'm not sure where to put it in the above code.

  9. #339
    Join Date
    Oct 2007
    Posts
    157
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Ok, I figured it out! I found your faq on how to do it, but was confused because I couldn't find the code used in your example:
    function exclude_category($category) {
    switch($category) {

    But I searched again, and found it near the top, starting with about line 16.

    So THANKS! I just tried it, and it worked with my changes.

  10. #340
    Join Date
    Sep 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I have a question. I am trying to setup quantity discounts for 12 units, 24 units, 36 units, and 48 units. I want the discount to ONLY affect those quantities, not the quantities in between. For example, 13 units gets no discount, 14 units gets no discount, etc. I tried setting 12 units and 10 as the percent off and then 13 units and 0 percent off, then 24 units as 10 percent off,etc. but it did not work. Any suggestions?

 

 
Page 34 of 85 FirstFirst ... 2432333435364484 ... 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