Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
dw08gm
Further to my above post (#348) I solved the excess space issue by creating a css class="discountpolicy1 h4" with {margin-bottom:0;} to negate the retained class="h4" with {margin-bottom:1em;}.
Further to above post (#350)
For the discounts table to appear on promo page as per css, you can edit includes\templates\lavender\templates\tpl_quantitydiscounts_promo_default.php (lines 25-42)
<br class="clearBoth" />
<?php
if (count($marketing_data) > 0) {
echo '<div class="content" id="discountPolicy1">' . "\n";
echo '<h4>' . STORE_POLICY . '</h4>';
echo '<ul>' . "\n";
for ($i=0, $n=count($marketing_data); $i<$n; $i++) {
echo '<li>'.$marketing_data[$i] . "</li>" . "\n";
}
echo '</ul>' . "\n";
echo '<br /></div>';
echo '<br class="clearBoth" />';
} else {
echo '<div class="content" id="discountPolicy1">' . "\n";
echo '<p>' . NO_QUANTITYDISCOUNTS_DISCOUNTS . '</p>';
echo '</div>' . "\n";
}
?>
It is a pity this kind of information/instruction is not easily located within ZC or with the addons, where it could save novices like myself countless hours of hapless searching and a good deal of frustration.
Re: Quantity Discounts for 1.3
Thank you for the nice instructional documentation for this mod that comes with the installation, was a big help.
I am looking into using the Reward Points Module mod is there a way that I can set Quantity Discounts not to apply to order if they select to "cash in" the rewards points?
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
ryanb4614
Thank you for the nice instructional documentation for this mod that comes with the installation, was a big help.
I am looking into using the Reward Points Module mod is there a way that I can set Quantity Discounts not to apply to order if they select to "cash in" the rewards points?
There's nothing prepackaged.
Re: Quantity Discounts for 1.3
I was refering to this site: http://www.thatsoftwareguy.com/zenca...discounts.html sorry.... any way to block either mod so they cant be used together?
Re: Quantity Discounts for 1.3
Like I said, there's nothing prepackaged to disallow quantity discounts on orders using rewards points. You could write custom software to do this, of course, but nothing exists at the moment to do this.
Re: Quantity Discounts for 1.3
swguy, quick question... has there ever been a way to make quantity discounts disabled if a coupon is being used? thank you! this mod is excellent
Re: Quantity Discounts for 1.3
Re: Quantity Discounts for 1.3
Hi -
I've installed the module and it works fine. Then I added the exclusions -- and most of my product page has disappeared along with the table for categories that were not excluded.
I'm perplexed. Here's the page, if that matters. I'm not sure what to do, I really need to add quantity discounts for one category, which contains multiple subcategories.
Help, please!
Re: Quantity Discounts for 1.3
Ok, guess I pm'd you too soon. I had reinstalled zc because of issues with the cherry_zen template. So I reinstalled Quantity Discount on a stock osc template. The discount itself works fine, but when I exclude categories my right column gets wiped out.
I dunno, maybe I did something wrong. I did refer to your website & here is the code I used (just the part I changed, it's too long to post):
Code:
<?php
/**
* Quantity Discounts in the order_total module
* Version 1.10
* By Scott Wilson (swguy)
* @copyright That Software Guy (www.thatsoftwareguy.com)
* @copyright Portions Copyright 2004-2006 Zen Cart Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
class ot_quantity_discount {
var $title, $output;
var $explanation;
// Add categories you wish to exclude to this list.
// Go to Admin->Catalog->Categories/Products and look
// at the left hand side of the list to determine
// category id. Note that 99999 and 99998 are just given
// as examples.
function exclude_category($category) {
switch($category) {
case 14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
return true;
}
return false;
}
Now, I took out the exclusions & reuploaded and my right column came back. :wacko:
Re: Quantity Discounts for 1.3
There's a bug in your syntax. Instead of
Code:
switch($category) {
case 14:
15:
16:
17:
etc.
you want
Code:
switch($category) {
case 14:
case 15:
case 16:
case 17:
etc.