A small change was made to Better Together to allow the new One to Many feature to properly interoperate with Checkout Candy. If you don't use Checkout Candy, you don't need this update.
The error looks something like this:
Version 2.5.1 of Better Together fixes this issue.Code:PHP Warning: Missing argument 3 for ot_better_together::get_discount(), called in /includes/functions/extra_functions/checkout_candy.php on line 22 and defined in /includes/modules/order_total/ot_better_together.php on line 295
Last edited by swguy; 25 Mar 2015 at 11:37 AM.
Hi SWGUY, Thanks for this very beautiful mod on Zencart.
I have installed this recently and I have a small issue (instead clarification). I am using the this code in my setup function: $this->add_cat_to_cat(5, 2, "$", 150); But if any product in Catagory 2 has price less than 150 (lets say 100), then I expect to have only $100 to be reduce from the total amount. But in this case $150is reduced from the Order total, which is not good for my newly started business :)
However, I tested for %, (5, 2, "%", 80), and it works fine, as it reduces 80% from the product price of catagory 2.
Not sure if it is designed to work in this way only.
Last edited by themaitrini; 23 Apr 2014 at 09:01 AM. Reason: typo
$this->add_cat_to_cat(5, 2, "$", 150);
reduces the order total by $150 if an item from category 5 and an item from category 2 are in the cart. It has no idea that your business is newly started.
oops emailing instead
Last edited by SarahL; 29 Apr 2014 at 04:45 PM.
This is only relevant to people who use the One to Many feature. If you don't, please ignore this post.
Please note that if you use the One to Many configuration, you should NOT be doing Buy one Get one offers on identical items (because the one to many behavior will cause your discount to double). So don't do things like
$this->add_prod_to_prod(17, 17, "%", 50); // Buy one product 17, get another product 17 at half off
if you want to use One to Many; make the discounted item different from the condition item.
Better Together works fine in Zen Cart 1.5.2 and 1.5.3.
Please I need an info :
Can this module link all products from an entire category to a product ( or more products) from another category ?
Example: I have Watches category and Boxes category. If you buy a watch you can choose a free box from category boxes. I would like to display this option on watch product detail page.
You can do cat to prod or cat to cat, but not cat to multiple prods with a single statement (of course you could have multiple cat to prod statements).