Page 76 of 85 FirstFirst ... 26667475767778 ... LastLast
Results 751 to 760 of 849
  1. #751
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,312
    Plugin Contributions
    125

    Default Re: Quantity Discounts for 1.3

    Which credit card integration are you using?
    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.

  2. #752
    Join Date
    Oct 2011
    Location
    Ohio
    Posts
    28
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I'm using the Authorize.net (AIM) module.

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

    Default Re: Quantity Discounts for 1.3

    Are you using the official one from Zen Cart? This is the first time I have heard of this problem in Zen Cart. In osCommerce it was a huge problem because people would grow their own payment modules without taking into account order totals.
    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. #754
    Join Date
    Oct 2011
    Location
    Ohio
    Posts
    28
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Yes, I am using the one that came with the Zen Cart software. I downloaded the full version of the software from the Zen Cart site and installed it myself (not using my hosting company's automated install).

    In case it's relevant, I am also using the TaxCloud module to calculate in-state sales tax, though this customer was out of state so there was no sales tax charged.

  5. #755
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I would be grateful for any help with trying to display the right marketing text for two parent categories which uses the function apply_special_category_discount. I've read and re-read the detailed documentation and still don't know how to add logic to the get_discount_parms() method I'm using from Quantity Discounts to reflect my category exceptions.

    All my other products use Total By Item discount basis as follows:
    Quantity Discount
    2 - 9 10%
    10 - 39 15%
    40 + 20%

    Parent categories 16 & 22 uses the following discount basis
    2 - 9 10%
    10 + 15%

    This is what I've done:
    1. Apply_special_category_discount() in includes/modules/order_total/ot_quantity_discount.php

    Code:
    function apply_special_category_discount($category, $count, &$disc_amount) {
            switch($category) {
               case 16:
               case 22:		
                    if ($count >= 10) {
                       $disc_amount = 15;
                    } else if ($count >= 2) {
                       $disc_amount = 10;
                    }
                    break; 
            }
        }
    2. As many of my products are linked and I've made the two changes to includes/templates/MYTEMPLATE/templates/tpl_product_info_display.php as advised in http://www.thatsoftwareguy.com/zenca...issues.html#mt

    Has anyone managed to get this working?

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

    Default Re: Quantity Discounts for 1.3

    You have to hardcode the marketing text for these exception cases. The get_* functions can't reverse engineer your logic in the apply_special functions.
    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. #757
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,312
    Plugin Contributions
    125

    Default Re: Quantity Discounts for 1.3

    The help page has been updated with an example of this.
    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.

  8. #758
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Thank you so much Scott! I appreciate the example which worked when I cut and paste.

    Scott, I realised that my apply_special_category_discount isn't working. I've checked and checked to see if I've got my syntax wrong or missed something but don't seem to. All I've done for this is ammend includes/modules/order_total/ot_quantity_discount.php to
    Code:
    function apply_special_category_discount($category, $count, &$disc_amount) {
            switch($category) {
               case 16:
               case 22:		
                    if ($count >= 10) {
                       $disc_amount = 15;
                    } else if ($count >= 2) {
                       $disc_amount = 10;
                    }
                    break; 
            }
        }
    I've tested it by adding my basket with 50 products and the discount is showing as 20% (which is default for all other products) and not 15% for this category. I feel as thick as two planks!

    Thank you for your patience.

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

    Default Re: Quantity Discounts for 1.3

    Go to the FAQ for Quantity Discounts and look at the link "Category Issues." Either your master categories id is not set the way you think it is (sometimes happens when EZ Populate is used) or you aren't clear on what "category" means for Quantity Discounts (it means master category).
    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.

  10. #760
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Thank you for the quick reply Scott. I've read the Category Issues http://www.thatsoftwareguy.com/zenca...issues.html#mt a few times and read it again a couple of times and realised that I was using a linked category (master_categories_id = 16) which I've removed and checked that the one I'm using (master_categories_id = 22) is correct.

    includes/modules/order_total/ot_quantity_discount.php now shows

    Code:
    function apply_special_category_discount($category, $count, &$disc_amount) {
            switch($category) {
                       case 22:		
                    if ($count > 10) {
                       $disc_amount = 15;
                    } else if ($count > 2) {
                       $disc_amount = 10;
                    }
                    break; 
            }
        }
    It still doesn't seem to be working. E.g. if I add a quantity of 50 to this product from category id 22 - http://tinyurl.com/kzhgamj, I'm getting 20% discount (default discount for all other categories) instead of 15%. I'm using Fast and Easy Checkout module and I don't think that matters in this case. I've read the installation notes again. Going to take a break. It's so straightforward with detailed documention and I'm pulling my hair out!

 

 
Page 76 of 85 FirstFirst ... 26667475767778 ... 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