Page 28 of 85 FirstFirst ... 1826272829303878 ... LastLast
Results 271 to 280 of 849
  1. #271
    Join Date
    Apr 2008
    Posts
    78
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I would like to add one of the marketing codes to product pages. I do not want that to show on the products that are excluded from discounts.

    I think I can exclude certain products or whole categories with the exclude functions, if an exclude is used would that also exclude the marketing code from displaying on that product?

    Where exactly do the marketing codes go?

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

    Default Re: Quantity Discounts for 1.3

    If you have used the exclusion logic or the exits to alter the behavior of Quantity Discounts, you'll need the same sort of logic around the marketing text. Examples of doing this are here:

    http://www.thatsoftwareguy.com/zenca..._messages.html

    The marketing text goes in the product info page

    includes/templates/<your template> tpl_product_info_display.php

    in a place of your choosing. There are no fixed rules; put it where you think is best. Common placements are at the top of the page and under the product description. Example code is provided here:

    http://www.thatsoftwareguy.com/zenca...html#marketing
    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.

  3. #273
    Join Date
    Apr 2005
    Posts
    206
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Hi, Swguy

    I tested this mod and it seems work very well. thanks! however, the discount price is only shown on total price page, is it possible to show on shopping cart? say a customer try to but 1 item initially, the price is £5, then he change the quantity to 5 items (which we set up to offer 20% discount), so after updating the quantity in shopping cart, he can see the single item price come down to just £4 immedately without going to final total price page. how can I do this?

    thank you in advance!

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

    Default Re: Quantity Discounts for 1.3

    Response by PM.
    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.

  5. #275
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    First of all, let me say great mod!

    Right now, I am getting a

    Code:
    [12-May-2008 15:07:17] PHP Fatal error:  Call to undefined method ot_quantity_discount::get_order_total() in /.../.../public_html/zen/includes/classes/order_total.php on line 181
    error after switching on strict error reporting/logging as per https://www.zen-cart.com/tutorials/index.php?article=82

    I am digging but not coming up with much on this...

    Let me know what else I might need to let you know to help solve this.

    Aaron

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

    Default Re: Quantity Discounts for 1.3

    You just need to upgrade to the latest Quantity Discounts contribution. The 1.3.8 infrastructure requires this function, and the latest Quantity DIscounts includes it.
    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. #277
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Quote Originally Posted by swguy View Post
    You just need to upgrade to the latest Quantity Discounts contribution. The 1.3.8 infrastructure requires this function, and the latest Quantity DIscounts includes it.
    Upgrade completed...

    I am trying to do a discount based on quantity from a category like this

    Code:
    function apply_special_category_discount($category, $count, &$disc_amount) {
            switch($category) {
               case 12: // 4 OZ Country Samplers Quantity Discount
                    if ($count > 4) {
                       $disc_amount = 13;
                    }
                    break;
               case 13: // 16 OZ Flip-Top Quantity Discount 
                    if ($count > 2) {
                       $disc_amount = 10;
                    }
                    break;
               case 15: // 24 OZ Flip-Top Quantity Discount
                    if ($count > 2) {
                       $disc_amount = 8;
                    }
                    break;
               case 16: // 32 OZ Flip-Top Quantity Discount
                    if ($count > 2) {
                       $disc_amount = 14;
                    } 
                    break; 
            }
        }
    However, it does not seem to be working. Am I missing something in my settings in admin?

    Thanks for the prompt reply!
    Aaron

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

    Default Re: Quantity Discounts for 1.3

    Common category errors are described here:
    http://www.thatsoftwareguy.com/zenca...ry_issues.html
    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.

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

    Default Re: Quantity Discounts for 1.3

    Quantity Discounts 1.10 is now available in the downloads area, offering discounting by dollars spent (at 5 tiers in the admin and at additional tiers by modifying the setup() function).

    To enable this behavior, use the admin setting Counting Method = currency.

    You MUST remove and re-install Quantity Discounts from the admin panel to get this new functionality; copying the files to your cart is not enough. You MUST install the new language file as well as the order total module.

    Two new marketing text examples (6 and 7) have been provided for use with this new setting.
    http://www.thatsoftwareguy.com/zenca...html#marketing

    Examples 1, 2 and 5 will also work unchanged.

    The Promotional Page for Quantity Discounts will work without change.
    Discount Preview will work without change.

    Plenty-o-questions are answered on the help page:
    http://www.thatsoftwareguy.com/zenca...discounts.html

    Thanks,
    Scott
    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. #280
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Alright, I have verified that my master_categories are correctly assigned. I guess that I am attempting to use user exits to do this category wide discounting.

    What I am trying to do for instance is the following:

    Items in (master)Category #28 are $6.95 each. Purchasing 4 or more takes the price to $6.00 each.

    Items in (master)Category # 29 are $17.95 each. Purchasing 2 or more takes the price to $17.00 each.

    This kind of discounting goes throughout the product line.

    http://www.pheniks.net/zen/ is my test/development site.

    My settings for quantity discounts in admin are:



    I have corrected my user exits in ot_qtydiscounts.php to the following:
    Code:
    function apply_special_category_discount($category, $count, &$disc_amount) {
            switch($category) {
               case 28: // 4 OZ Country Samplers Quantity Discount
                    if ($count > 4) {
                       $disc_amount = 13;
                    }
                    break;
               case 29: // 16 OZ Flip-Top Quantity Discount 
                    if ($count > 2) {
                       $disc_amount = 10;
                    }
                    break;
               case 30: // 24 OZ Flip-Top Quantity Discount
                    if ($count > 2) {
                       $disc_amount = 8;
                    }
                    break;
               case 31: // 32 OZ Flip-Top Quantity Discount
                    if ($count > 2) {
                       $disc_amount = 14;
                    } 
                    break; 
            }
        }
    Appreciate the assistance!

 

 
Page 28 of 85 FirstFirst ... 1826272829303878 ... 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