This line is in error:
$flavor != CAT_TO_CAT) &&
There are also other ways to do this; see your PM.
Scott
This line is in error:
$flavor != CAT_TO_CAT) &&
There are also other ways to do this; see your PM.
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.
Re-reading this post, I see it's not very clear.
This line is in error
$flavor != CAT_TO_CAT) &&
because of the extraneous bracket before the logical and.
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.
If you are rusing the marketing text I have provided, you will see that the text for two for one category discounts will come out simply as "12." If you wish to provide a more detailed message :) please make the following changes:
./includes/modules/order_total/ot_better_together.php line 364
./includes/languages/english/modules/order_total/ot_better_together.php line 29
change the definition TWOFER_CAT to TWOFER_CAT_PROMO_STRING.
This bug only affects two for one category discounts.
This will be fixed in the next release.
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.
Hi,
Great mod! One question and one problem though.
1. Is it possible to make it discount the LOWER of the items in a "category to category" discount? ie; a person adds one item, worth $5 to the cart, then from the same category, an item worth $20. It's discounting the $20 item by 25%, and I'd prefer it discount the $5 one.
2. I cannot seem to get the "two for one category" discount to work. I tried this first, with no other discounts, but no-go. I then used the "category to category" discount at 100% on the second item, and it worked. Items are in category 56, which is a sub-category of category 27. I was using category 56 for the discounts.
Thanks.
Re: 1 - not at this time.
Re 2 - the semantics (as implemented) of add_cat_to_cat(x) are "you get two for one on all items in category x" not "buy one item from category x, get another free". Of course, this is incredibly confusing given that the marketing text suggests the latter behavior.Add_cat_to_cat gives you what (I think) you want.
Thanks,
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.
Hi Scott,
I think I was not clear in my explanation... I'll try again
My first attempt was with this code:
I could not get it to work on my cart, but I do have this working to do the same thing:PHP Code:// Buy any item from category 56, get a second identical one free
$this->add_twoforone_cat(56);
Am I missing something in the functionality? My site seems OK, but I'm just trying to figure out why I could not make the twoforone work. Got no discount on the category at all.PHP Code:$this->add_cat_to_cat(56, 56, "%", 50);
Thanks
Ray
I can't dup this on php4 or php5.
I use
$this->add_twoforone_cat(21);
at
http://192.168.1.103/swguy_demo_1.3.7/
which is php4.
Cat 21 is gift certificates. Add two OF THE SAME and you'll see the discount. I know the marketing text is misleading; I will fix this in the next release.
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.
Argh! For those who weren't completely confused by this misstatement - you should have been! (This should have read, "the semantics of add_twoforone_cat(x) ...")
The documentation has been updated to reflect how this actually works, namely:
add_twoforone_cat(x) - "you get two for one on all items in category x"
add_cat_to_cat(x, x, ..) - "buy one item from category x, get another from category x free"
As noted previously, the marketing text is misleading on add_twoforone_cat; this will be fixed in the next release, which will be available shortly.
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.