Page 74 of 85 FirstFirst ... 2464727374757684 ... LastLast
Results 731 to 740 of 849
  1. #731
    Join Date
    May 2009
    Posts
    155
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Thanks for the help - one more question...

    I am trying to add discounts to a third category using this module but I cannot get the 'quantity discount' box to show up in this new category. I have added the following text to: /public_html/includes/modules/order_total/ot_quantity_discount.php

    Code:
       case 102:
    			if ($count > 29) {
    				$disc_amount = 15;
    			} elseif ($count > 19) {
    				$disc_amount = 10;
    			} elseif ($count > 9) {
    				$disc_amount = 5;
    			}
    		break;
    Is there somewhere else I need to 'activate' this so that the discount box will show up?
    It still shows on my two other categories (which have the discounts listed on the same ot_quantity_discount page) but just not this third one.

    Thanks
    Last edited by PudzPud; 8 Nov 2013 at 05:08 PM. Reason: changed text

  2. #732
    Join Date
    May 2009
    Posts
    155
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    It's ok, have got it sorted now.
    It won't let me delete the last post tho.

  3. #733
    Join Date
    Feb 2011
    Posts
    1
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    I have installed the module, but i have searched for ages?
    Sure i am being stupid but where in the admin panel is the configuration for the discounts setup

  4. #734
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Quantity Discounts for 1.3

    Use admin-modules-order total-quantity discounts - edit to set the configuration. It applies to the whole cart.
    That Software Guy. My Store: Zen Cart Modifications
    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. #735
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Hi Scott,

    I'm using Zencart 1.5.1 and Quantity Discounts 1.12. I've read http://www.thatsoftwareguy.com/zenca...discounts.html and tried searching the forum.

    I have "Display Prices with Tax" = true (in Admin->Configuration->My Store) as I want to display prices including UK VAT.

    On my test product info page (http://tinyurl.com/lkeo9hr), you will see that I've plonked on your codes for Quantity Discounts Marketing Example 1 and 4. The prices displayed currently do not include VAT.

    How do I get it to display the prices including vAT?

    Many thanks!

  6. #736
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Quantity Discounts for 1.3

    Edit the file includes/modules/order_total/ot_quantity_discount.php and go to the function get_discounted_prices.

    Where the call to $this->print_amount is made, switch that to

    $currencies->display_price($disprice, zen_get_tax_rate($product_info->fields['products_tax_class_id']));

    (Note that you will need to look up the tax class id - i.e.

    $sql = "SELECT products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_id = " . (int)$product;
    $product_info = $db->Execute($sql);
    That Software Guy. My Store: Zen Cart Modifications
    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. #737
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Thank you so much for the quick reply. I'm not a programmer so this is what I think I should do if I understand your reply correctly. Apologies in advance if I'm taking things too literally.

    My tax class id is 1.

    In the file includes/modules/order_total/ot_quantity_discount.php, I need to replace
    $priceinfo[$pos]['price'] = $this->print_amount($disprice);
    with
    $priceinfo[$pos]['price'] = $currencies->display_price($disprice, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
    $sql = "SELECT products_tax_class_id FROM " . TABLE_PRODUCTS . " WHERE products_id = 1 " . (int)$product;
    $product_info = $db->Execute($sql);

    Bet I got that wrong!

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

    Default Re: Quantity Discounts for 1.3

    It didn't work. Tried different combinations too. Sorry to bother you but would really appreciate a dumbed down version. :) Thanks

  9. #739
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Quantity Discounts for 1.3

    change

    $priceinfo[$pos]['price'] = $this->print_amount($disprice);

    to

    $priceinfo[$pos]['price'] = $currencies->display_price($disprice, zen_get_tax_rate(1));
    That Software Guy. My Store: Zen Cart Modifications
    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. #740
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    96
    Plugin Contributions
    0

    Default Re: Quantity Discounts for 1.3

    Thank you for your patience Scott.

    I did exactly as you suggested (twice. I made sure I used an unmodified includes/modules/order_total/ot_quantity_discount.php from the zipped file). I'm now getting a blank where the pricing has dissapeared with the buy button at http://tinyurl.com/lkeo9hr

 

 
Page 74 of 85 FirstFirst ... 2464727374757684 ... 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