Nevermind, I see the page for that, discount preview!
http://www.thatsoftwareguy.com/zenca...t_preview.html
I will have to add that someday!
Nevermind, I see the page for that, discount preview!
http://www.thatsoftwareguy.com/zenca...t_preview.html
I will have to add that someday!
My zen cart is being rebuilt!! www.nicecarvings.com
The Quantity Discount Mod is working great!
www.thatsoftwareguy.com/zencart
I'm trying to set a discount for a specific product; I added the following code to the "apply_special_item_discount()" function:
case 397:
if ($count > 3 and $count < 6) {
$disc_amount = 6;
}
elseif($count > 6) {
$disc_amount = 12;
}
break;
But it's not working! Am I missing something, did I miss a step?
Remember that apply_special_item_discount can only be used with Discount Basis "Total By Item." I suspect you're using a different basis.
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.
Here's a screenshot of my settings, let me know if you need to see anything else.
Where do I specify which categories to exclude from the discount? I just installed your most recent version.
I've looked in your info, but can't figure out where to do it.
Thanks!
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.
I found where to do this in the php file, starting with line 190:
// Add categories you wish to exclude to exclude_category()
if ($this->exclude_category($products[$i]['category'])) {
continue;
and the category I want to exclude is #111, but I'm not sure where to put it in the above code.
Ok, I figured it out! I found your faq on how to do it, but was confused because I couldn't find the code used in your example:
function exclude_category($category) {
switch($category) {
But I searched again, and found it near the top, starting with about line 16.
So THANKS! I just tried it, and it worked with my changes.![]()
I have a question. I am trying to setup quantity discounts for 12 units, 24 units, 36 units, and 48 units. I want the discount to ONLY affect those quantities, not the quantities in between. For example, 13 units gets no discount, 14 units gets no discount, etc. I tried setting 12 units and 10 as the percent off and then 13 units and 0 percent off, then 24 units as 10 percent off,etc. but it did not work. Any suggestions?
Bookmarks