Results 1 to 4 of 4
  1. #1
    Join Date
    May 2005
    Posts
    50
    Plugin Contributions
    0

    Default Quantity Discounts Mod Not Working

    I have been using the quantity discounts v 1.11 on a 1.3.9d store for years. I am creating a 1.5.1 store and I can not get it working. I have installed it as per instructions and I copied my same file from the 1.3.9d installation (same store, just doing a refresh with a responsive template - celestial by Zen4me - checked and template doesn't matter for problem). I have updated the category with the new category number.

    I only use it for a category discount and I changed the code in the modules/order_total/ot_quantity_discount.php file.

    Here is my code that I customized:
    function apply_special_category_discount($category, $count, &$disc_amount) {
    switch($category) {
    case 1:
    if ($count >= 420) { $disc_amount = 5.2452381; } else
    if ($count >= 210) { $disc_amount = 5.2523810; } else
    if ($count >= 170) { $disc_amount = 4.7235294; } else
    if ($count >= 130) { $disc_amount = 3.8692308; } else
    if ($count >= 110) { $disc_amount = 3.6636364; } else
    if ($count >= 90) { $disc_amount = 3.3666667; } else
    if ($count >= 70) { $disc_amount = 2.90; } else
    if ($count >= 50) { $disc_amount = 2.06; } else
    if ($count >= 20) { $disc_amount = 2.05; } else
    if ($count >= 10) { $disc_amount = 1.10; }
    break;

    Once again, this code is working great on a 1.3.9d store.

    Any ideas?

  2. #2
    Join Date
    May 2005
    Posts
    50
    Plugin Contributions
    0

    Default Re: Quantity Discounts Mod Not Working

    Nevermind. It is the Discount Preview mod that I need to get setup properly. Everything is ok!

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Quantity Discounts Mod Not Working

    Quote Originally Posted by rmjr View Post
    I have been using the quantity discounts v 1.11 on a 1.3.9d store for years. I am creating a 1.5.1 store and I can not get it working. I have installed it as per instructions and I copied my same file from the 1.3.9d installation (same store, just doing a refresh with a responsive template - celestial by Zen4me - checked and template doesn't matter for problem). I have updated the category with the new category number.

    I only use it for a category discount and I changed the code in the modules/order_total/ot_quantity_discount.php file.

    Here is my code that I customized:
    function apply_special_category_discount($category, $count, &$disc_amount) {
    switch($category) {
    case 1:
    if ($count >= 420) { $disc_amount = 5.2452381; } else
    if ($count >= 210) { $disc_amount = 5.2523810; } else
    if ($count >= 170) { $disc_amount = 4.7235294; } else
    if ($count >= 130) { $disc_amount = 3.8692308; } else
    if ($count >= 110) { $disc_amount = 3.6636364; } else
    if ($count >= 90) { $disc_amount = 3.3666667; } else
    if ($count >= 70) { $disc_amount = 2.90; } else
    if ($count >= 50) { $disc_amount = 2.06; } else
    if ($count >= 20) { $disc_amount = 2.05; } else
    if ($count >= 10) { $disc_amount = 1.10; }
    break;

    Once again, this code is working great on a 1.3.9d store.

    Any ideas?
    Are you sure that in your new store the category to receive the quantity discount is category 1 as identified in the select statement?

    Otherwise that portion of code doesn't do much.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,515
    Plugin Contributions
    126

    Default Re: Quantity Discounts Mod Not Working

    Quote Originally Posted by rmjr View Post
    Nevermind. It is the Discount Preview mod that I need to get setup properly. Everything is ok!
    Thanks for confirming that the Quantity Discounts contribution works for you in Zen Cart 1.5.1.
    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.

 

 

Similar Threads

  1. v153 Salemaker still not applying to Quantity Discounts
    By vickilapp in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 25 Aug 2023, 07:13 PM
  2. Quantity Discounts (populate) Mod?
    By byrd813 in forum General Questions
    Replies: 0
    Last Post: 17 Sep 2009, 02:29 AM
  3. Quantity Discounts not showing in Sub Total
    By beatnik in forum Basic Configuration
    Replies: 0
    Last Post: 14 Apr 2008, 04:19 PM
  4. Quantity Discounts per product - not category
    By intcon in forum General Questions
    Replies: 3
    Last Post: 1 Feb 2008, 10:57 PM
  5. Quantity Discounts per product - not category
    By intcon in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 27 Jan 2008, 11:35 PM

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