Zen Cart Logo
Forums / Addon Order Total Modules / Quantity Discounts for 1.3

Quantity Discounts for 1.3

Views: 226,318

Results 41 to 60 of 847
25 Oct 2006, 9:57 AM
#41
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Quantity Discounts for 1.3

Yes you can, Jeff. Just be sure to put a reminder note in ot_quantity_discount.php (in whatever user exits you have used) to keep this file in sync with tpl_product_info_display.php.

The code in tpl_product_info_display.php for a specific category would be:

if ($current_category_id == 14) {
...
}

or for a specific product

if ((int)$_GET['products_id'] == 27) {
...
}

Good luck,
Scott

25 Oct 2006, 12:15 PM
#42
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Scott,

Is this to include or exclude?

thanks,
Jeff

25 Oct 2006, 12:37 PM
#43
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Scott,

2 other questions:

1--

How do you correctly write this code for multiple exits (multiple ifs) ?
What did I do wrong here?

I did one and it worked perfectly, but I cannot get 2 to 'code' correctly.

<?php if ($current_category_id == 68) if ($current_category_id == 69) { { $value = "ot_quantity_discount.php"; include(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false')); include(DIR_WS_MODULES . "order_total/" . $value); $discount = new ot_quantity_discount(); echo '<div class="content" id="discountPolicy">'; echo '<h2>' . STORE_POLICY . '</h2>'; echo $discount->get_html_policy(); echo '<br /></div>'; } } ?>

2--

What is the code for 'exclude', instead of 'include?
I have less to exclude, so there would be less of them to write in

thanks,
Jeff

25 Oct 2006, 10:07 PM
#44
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Examples of inclusion and exclusion of this message for specific product and category ids are provided in my page

http://www.thatsoftwareguy.com/zencart_conditional_messages.html

Good luck,
Scott

25 Oct 2006, 10:23 PM
#45
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Yep,

That does it! thanks Scott

31 Oct 2006, 12:47 PM
#46
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Quantity Discounts interoperates with 1.3.6. There have been changes to the tax computation in other order total modules that I may incorporate (possibly optionally) at a later date.

Thanks,
Scott

31 Oct 2006, 11:30 PM
#47
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Oh, by the way, the customization to shopping_cart.php from early versions of Quantity Discounts is no longer needed if you're upgrading to 1.3.5 or 1.3.6. Just upgrade to the latest Quantity Discounts and you'll be all set.

Scott

9 Nov 2006, 5:41 AM
#48
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

scott, I sent you an email, hopefully you received it. I have a what seems to be a more complicated discount model than can be created with the current exits.

I have two categories that are sub-cats of the same parent - I want to create a discount where the customer can mix or match quanties from either or both of thse categories. the discount from categoryA with items >4 = X and the discount from category B =Y. The >4 as I said can be composed of products from either, or both categories. I've explained it in more detail in email.

My question is, can this be done with your additional exits that you offer on your site? I really am pressed on this and am interested in contacting you.

Thanks

11 Nov 2006, 1:29 AM
#49
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I have installed the quantity discount and I've had no error or issues, however I am not able to get it to produce discounts. I first installed it on a test system (1.3.5) and got it to work in its most basic form. But now that I've taken the site live it ignores the settings and I'm not sure what to look for.

Could some show me what I need to do to set this up correctly?

I set the admin to category - and percentage level one = 5

this is the only user exit that I set up - see code below:

// Add categories with special discounting policies to this list.
// Note that 99999, 99998 and 99997 are just given as examples.
// Note that the Discounting Units you specified in Admin 
// (percentage or currency) are also used here.
function apply_special_category_discount($category, $count, &$disc_amount) {
    switch($category) {
       case 27:
               if ($count > 4) {
               $disc_amount = 16.00; 
            }
            break; 
       case 28:
            $disc_amount = 24.00;
            break;
    }
}

Now I was at least getting it to show the discount for the first category at which point I emailed Scott to see about getting this other user exits to expand what I needed, but no response yet.

I really need to get this to work at least in its most basic form. Can someone who has had success with this help me out? I would be very appreciative.

Thanks in advance.

12 Nov 2006, 8:21 PM
#50
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Are you sure you have the categories correct? Remember these are the parent categories of the item, not the top level category.

Scott

12 Nov 2006, 8:32 PM
#51
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I just sent you copies of my lost emails... No those are the categories where the products lie. URL is http://www.lorindascandlesandmore.com

Since I took the site live and installed the SSL I get nothing pulling through at all. I even tried a simple 1.00 off on one category and nothing... Very strange. I was getting some kind of discount before that. Of course go live and it breaks...LOL

Ruth

18 Nov 2006, 9:39 PM
#52
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I just wanted to get back and thank Scott for all his help. I was finally able with his help and the purchase of his additional exit for Top Categories, I was able to get the discounts implemented that I needed and the way I needed them to work. I really appreicate the time you spent with me on this.

Take care and have a super day!!!

9 Jan 2007, 11:35 PM
#53
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Quantity Discounts version 1.4, with no limits to the number of levels and discounts, will be available in the downloads area sometime around Feb. 1. If you've chafed at the restriction of only having five discounting levels, you'll be pleased by this new version. I can accomodate a couple of beta testers who promise to provide feedback. See you in three weeks!

Cheers,
Scott

10 Jan 2007, 5:46 AM
#54
cherylkemp avatar

cherylkemp

Zen Follower

Join Date:
Mar 2006
Posts:
179
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I noticed in another thread where you mentioned to someone this mod could be used for discounts based on order total rather than quantity of items. I am very intereted in setting up something like that...for example 10% $25 total, 15% off $50 total etc. Have you gone into detail on this somewhere else where I could learn more about doing this? Thanks!

10 Jan 2007, 8:14 AM
#55
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

Click on the link in my sig. Waaaay more documentation than you would ever want inside. :)

Good luck,
Scott

22 Jan 2007, 11:30 PM
#56
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi Scott and Hi Others

Now I am stuck. :-(

I Sell memory sticks. Want to use your quantity price breaks and maybe minimum quantity to accomplish this:

Example of 4 products. All products differences only memory size. Because of limitation quantity price breaks work with attributes I've been pushed to put them as a separate products than one with attribute "Memory"

Capacity/Volume 5072------- 144----- 288----- 576

512MB----- $29.42----- $27.86----- $24.23----- $22.68 $19.87
1GB----- $31.93----- $29.75----- $26.92----- $23.31 $21.74
2GB----- $62.99----- $57.89----- $52.47----- $49.57 $46.44
4GB----- $145.57----- etc

I want to let customer buy differnet size of memory stick in range of "Minimum Quantity", example: Minimum Quantity is 50. If customer buys 73 x 512MB also can chose other 1GB in price of "between 72 - 144". If he buy more than 144, other sizes of this product wille in 144 range and so on.

I was trying to use native quantity price breaks. But after fight with attributes and their quantities, i gave up. There is no way to let it work. After that I installed your mod. First of all i'd like to say thank you for really cool mod, but I still cannot get this to work. In a native price module there is option called " Discount Qty Applies to Mixed Attributes" and it work when Price by attributes is off. I think this mod is missing something simmilar.

Adam

22 Jan 2007, 11:36 PM
#57
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,712
Plugin Contributions:
56

Re: Quantity Discounts for 1.3

See your PM.

Scott

22 Jan 2007, 11:40 PM
#58
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hi Scott and Hi Others

Now I am stuck. :-(

I Sell memory sticks. Want to use your quantity price breaks and maybe minimum quantity to accomplish this:

Example of 4 products. All products differences only memory size. Because of limitation quantity price breaks work with attributes I've been pushed to put them as a separate products than one with attribute "Memory"

Capacity/Volume -----50-------------72------------ 144---------- 288---------- 576

-----------512MB----- $29.42----- $27.86--------- $24.23----- $22.68----- $19.87
-----------1GB----- -- $31.93----- $29.75--------- $26.92----- $23.31 ----- $21.74
-----------2GB-------- $62.99----- $57.89--------- $52.47----- $49.57 ----- $46.44
-----------4GB------- $145.57----- etc

I want to let customer buy differnet size of memory stick in range of "Minimum Quantity", example: Minimum Quantity is 50. If customer buys 73 x 512MB also can chose other 1GB in price of "between 72 - 144". If he buy more than 144, other sizes of this product wille in 144 range and so on.

I was trying to use native quantity price breaks. But after fight with attributes and their quantities, i gave up. There is no way to let it work. After that I installed your mod. First of all i'd like to say thank you for really cool mod, but I still cannot get this to work. In a native price module there is option called " Discount Qty Applies to Mixed Attributes" and it work when Price by attributes is off. I think this mod is missing something simmilar.

Adam

22 Jan 2007, 11:41 PM
#59
manada avatar

manada

New Zenner

Join Date:
Dec 2005
Posts:
35
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Opps, sorry for bumped post

23 Jan 2007, 8:06 PM
#60
beowulf1066 avatar

beowulf1066

New Zenner

Join Date:
Jan 2007
Location:
Georgia, USA
Posts:
35
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Will the quantity discount be available for 1.3.6? When I install the current version it changes the page on the admin.:smile: