Re: Quantity Discounts for 1.3
> I have over 5,000 of these, how do I get them into the SQL database?
If this is your discounting model, you don't want this contribution. You should use native quantity discounts and import your data using phpMyAdmin or perhaps just creating a .sql script from your data.
Re: Quantity Discounts for 1.3
thanks - is there a quick and dirty way to explain how I might do that?
Re: Quantity Discounts for 1.3
Yes. You post an ad in Commercial Help Wanted saying "subcontractor needed with data import experience and knowledge of built-in quantity discounting mechanism." Someone will respond and do this for you.
Re: Quantity Discounts for 1.3
no need to be nasty, I was just looking for some info that might help me figure out how to do the data import.
Re: Quantity Discounts for 1.3
The mod is.. simply not working for me. I've customized it to work w/ a certain category:
Code:
function exclude_product($id) {
switch($id) {
case 137:
case 99998:
return false;
}
return true;
}
Set the discount to "total by category."
I installed it following all the instructions, first removing the old group discount mod. The quantity discount is simply not showing up at the checkout page. What did I possibly do wrong?
Re: Quantity Discounts for 1.3
You said
Quote:
I've customized it to work w/ a certain category:
but then you showed the exclude_product function.
The function exclude_product() excludes products not categories.
What are your levels in admin? Are you running ZC 1.3.5 or higher? Did you read the FAQ about the possible root causes of category problems?
http://www.thatsoftwareguy.com/zenca...ounts.html#faq
Re: Quantity Discounts for 1.3
It clearly says on your page that, if you want to apply the discounts to a certain category, you use this code:
Code:
function exclude_category($category) {
switch($category) {
case 11:
return false;
}
return true;
}
which i thought made sense, since you switched the false and the true around.
I am running ZC 1.3.7. My levels in admin:
http://i20.tinypic.com/63sqj7.jpg
Re: Quantity Discounts for 1.3
Quote:
Originally Posted by
mohinder
It clearly says on your page that, if you want to apply the discounts to a certain category, you use this code:
Code:
function exclude_category($category) {
switch($category) {
case 11:
return false;
}
return true;
}
which i thought made sense, since you switched the false and the true around.
Your first post shows code for products and this post shows the code for categories, perhaps this is the problem?
Matt
Re: Quantity Discounts for 1.3
There are a bunch of knobs and switches for tax calculation, and they're not easy to understand. I explained some of them here:
http://www.thatsoftwareguy.com/zenca...sales_tax.html
The tax regime in some countries is so complicated that you have to write additional code; don't know if that's the case for Sweden or not.