If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Order Total Modules / Quantity Discounts for 1.3

Quantity Discounts for 1.3

Started by swguy on 13 Aug 2006, 10:22 AM · Views: 226,694

Results 201 to 220 of 847
19 Nov 2007, 3:28 AM
#201
bbemis avatar

bbemis

Zen Follower

Join Date:
Feb 2006
Posts:
163
Plugin Contributions:
0

Quantity Discounts for 1.3

Hi,

I need somthing that is seemingly very simple, but for the life of me, I cannot figure it out. All my products are photos and all are the same price. I just want to be able to off a .50 discount per photo if 10 or more are purchased. So, whether they buy 10 or 100, the discount is .50 off each photo.

I have set up quantity discounts and it seems to be functioning. I have the following settings:

Discount Units: currency

Discount Basis: Total items in cart

Discount Level 1: 10

Discount Amount 1: .50

With these settings, if you put 10 items in the cart, you get a total discount of .50, where as I need it to be a discount of .50 PER ITEM for a total of $5 off of 10. What am I doing wrong?

19 Nov 2007, 10:44 AM
#202
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

There's no "per item" discount yet - there's percent per item discount or dollar figure discount, but not per item. Since your items all have the same price, figuring out what % is equal to $0.50 and using that (with discount by % rather than currency) will work.

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.

19 Nov 2007, 7:12 PM
#203
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

I got to thinking about this today after I responded to your question, and decided this would be a worthwhile and generally useful thing to add. Sit tight.

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.

19 Nov 2007, 7:44 PM
#204
eddierosenthal avatar

eddierosenthal

New Zenner

Join Date:
May 2007
Posts:
19
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Can this module be installed without having/using custom template.
i have vanilla zen cart installed .

19 Nov 2007, 7:49 PM
#205
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You don't have to install the marketing text, so the answer is yes - but as soon as you want to introduce the text, I would encourage you to create a custom template. It doesn't have to contain anything more than the product info template you change and the other required template files (css, template_info, etc.).

I personally think the marketing text is part of the appeal of this feature, but it's up to you.

Good luck,
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.

20 Nov 2007, 10:04 AM
#206
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

bbemis:

Hi,

I need somthing that is seemingly very simple, but for the life of me, I cannot figure it out. All my products are photos and all are the same price. I just want to be able to off a .50 discount per photo if 10 or more are purchased. So, whether they buy 10 or 100, the discount is .50 off each photo.

OK, this is now available. Download Quantity Discounts 1.7 and REMOVE and INSTALL Quantity Discounts. You must run REMOVE and INSTALL, it's not enough to just copy the files. Then set the Discount Units to currency per item, and set Level 1 and Amount 1 appropriately.

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.

20 Nov 2007, 10:49 PM
#207
eddierosenthal avatar

eddierosenthal

New Zenner

Join Date:
May 2007
Posts:
19
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

i almost have the template override thing going, except for the front page,
which i made with ez pages sometime ago.
i noticed the page name is define_main_page.php, which resembles the text on the shopping cart front page. https://www.aquadine.com then shop.
i can't figure out why it doesn't show up.
the define main page is in
catalog/includes/languages/english/html_includes/classic/define_main_page.php

so i created ...
catalog/includes/languages/english/html_includes/aquadine-template
( but noticed it was empty so i copied files and ...)
actually as i was typing and double checking i got it to work. i didn't want to give you false info, and by doing that i moved forward a square or two...

ok - next question -
i want to be able to offer a kind of 1 and 1/2 for 1 deal. is that something
that can be done with your modue?
on a linux system - after unzipping the files -
i can copy them to the template locations then?
thanks.

20 Nov 2007, 11:29 PM
#208
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

If you want buy one get one half off, you should look at Better Together, not Quantity Discounts.

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 Dec 2007, 7:58 PM
#209
notset4life avatar

notset4life

Zen Follower

Join Date:
Sep 2004
Posts:
177
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Quantity Discounts is not working with 1.3.8. When you get to the checkout
page, i just get a BLANK Page. I removed Quantity Discount from Order Total page, and my zen-cart works fine.

Thanks

3 Dec 2007, 12:37 AM
#210
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

I will release a new version later on; for now, simply replace

includes/modules/order_total/ot_quantity_discount.php

with this file. This is only required for 1.3.8.

Thanks for reporting this problem,
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.

3 Dec 2007, 1:29 AM
#211
notset4life avatar

notset4life

Zen Follower

Join Date:
Sep 2004
Posts:
177
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

thanks for the quick response. That fixed it!

12 Dec 2007, 3:32 PM
#212
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Quantity Discounts 1.8 (with support for Zen Cart 1.3.8) has been posted to the downloads area.

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.

15 Dec 2007, 10:34 PM
#213
twistertires avatar

twistertires

New Zenner

Join Date:
Dec 2007
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

is there a way to disable the discounts for a specific user? I'm using a wholesale mod that sets a wholesale attribute 0, 1, 2. Anybody with 1 or 2 should not receive additional discounts.

$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
if ($customer_check->fields['customers_whole'] != "0")

15 Dec 2007, 10:59 PM
#214
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

You would have to write code to do this; there's nothing built in.

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.

16 Dec 2007, 12:27 AM
#215
twistertires avatar

twistertires

New Zenner

Join Date:
Dec 2007
Posts:
7
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Seems easy enough, I modified the ot_quantity_discount.php page with the following in case it helps anybody in the future. (the add dealers portion)

   for ($i=0, $n=sizeof($products); $i<$n; $i++) {
      // Add categories you wish to exclude to exclude_category()
      if ($this->exclude_category($products[$i]['category'])) {
          continue; 
      }
      // Add products you wish to exclude to exclude_product()
      if ($this->exclude_product($products[$i]['id'])) {
          continue; 
      }
  // Add dealers

if ($_SESSION['customer_id']) {
		$customers_id = $_SESSION['customer_id'];
	$customer_check = $db->Execute("select * from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'");
	if ($customer_check->fields['customers_whole'] != "0") {
		$disc_amount = 0;
		continue;
	}
}
22 Dec 2007, 2:12 AM
#216
hsquared avatar

hsquared

New Zenner

Join Date:
Dec 2007
Posts:
9
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Hello,

I'm having difficulty getting Quantity Discounts to install. I'm new to Zen Cart and any help would be greatly appreciated.

My cart is installed in: public_html/zensetup

Thanks in advance.

hsquared

23 Dec 2007, 6:36 AM
#217
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

At the sake of sounding stupid I am going to ask this anyways.

Where is this "function exclude_category" where I needed to insert the following code

    function exclude_category($category) {
        switch($category) {
           case 11:
                return false;
        }
        return true;
    }
23 Dec 2007, 9:38 AM
#218
swguy avatar

swguy

Administrator

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

Re: Quantity Discounts for 1.3

Within ./includes/modules/order_total/ot_quantity_discount.php. I have updated the FAQ to indicate this.

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.

23 Dec 2007, 5:20 PM
#219
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

Thank you I inserted the code in that module. I am assuming I did that right.
Was I suppose to remove the following code if I added the other?

    function exclude_product($id) {
        switch($id) {
           case 99999:
           case 99998:
                return true;
        }
        return false;
    }
23 Dec 2007, 6:12 PM
#220
attroll avatar

attroll

Zen Follower

Join Date:
Dec 2007
Posts:
103
Plugin Contributions:
0

Re: Quantity Discounts for 1.3

I have the above figured out I think.

I tried putting the "Quantity Discounts Marketing Example 1 Code" in the tpl_product_info_display.php. I tried all the examples that you gave and each one I tried did not work. When ever I tried to display my product it came up with a blank page.

Did I miss a step or do something wrong?