Ok, Thanks for the reply. I will try tofigure out how to do this. One more question. Is there a posibility to list all Better Toguether products on one list just like Specials items?
Printable View
Ok, Thanks for the reply. I will try tofigure out how to do this. One more question. Is there a posibility to list all Better Toguether products on one list just like Specials items?
Not right now. I have toyed with this idea in the past, but the trouble is, it's hard to make it relevant. If you are looking for gardening tools, you don't really care that diapers are discounted when purchased with baby food. That's why the marketing text on the product page is the promotional mechanism I have suggested - the customer has already drilled down and indicated his interest. That's the optimal upselling point.
Nevertheless, thank you for the suggestion, and I'll think on it some more.
That Software Guy
I've had a change of heart on this. Look for a new optional download in late September providing this functionality. I think I'd like to keep it separate because not everyone wants it, but it definitely has value.
Scott
I've been using this mod for a while and it works great. Now I've got a new set of products and want to give a gift for any purchase of a category item i.e. category to product discount.
Since this is not part of your code, I tried adding
define('CAT_TO_PROD', '4');
and made adjustments through the code, but I get an error on line 35 - something about not expecting a Boolean AND.
Here are my modified lines 33 to 38:
if ($flavor != PROD_TO_PROD &&
$flavor != PROD_TO_CAT &&
$flavor != CAT_TO_CAT) &&
$flavor != CAT_TO_PROD) {
bailout("Bad flavor " . $flavor);
}
Any ideas?
This line is in error:
$flavor != CAT_TO_CAT) &&
There are also other ways to do this; see your PM.
Scott
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.
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
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
Hi Scott,
I think I was not clear in my explanation... I'll try again :smile:
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