Re: Better Together Contribution Support Thread
Does anyone have an answer for this problem, please? I installed the mod today, and everything works until step 2 of checkout when I get a blank page. Checkout works perfectly well when the mod is installed but the ot_better_together.php is NOT altered, but as soon as I try to set a function, I get the error.
I would greatly appreciate some help. :)
Re: Better Together Contribution Support Thread
I had the same problem and a member of the forum helped me out with it. I'd purchased the admin panel though aswell which makes life so much easier :)
Re: Better Together Contribution Support Thread
PSP Queen, you need to *carefully* follow the examples provided in the help
http://www.thatsoftwareguy.com/zenca..._together.html
For instance, discounting product 12 by 50% when product 14 is purchased:
function setup() {
$this->add_prod_to_prod(14, 12, "%", 50);
}
Other examples are provided in the help.
Re: Better Together Contribution Support Thread
Well, thanks for your reply, but please do not assume I have not 'carefully followed' your examples. I have; in fact I have copied and pasted the exact code for what I want from your information pages, just like you have shown me above. When that didn't work I tried copying and pasting the handy examples in the actual php file. I tried all combinations to see if I could find one that worked and then see where I was going wrong. All I changed were the numbers for the categories, so mine read:
function setup() {
$this->add_twoforone_cat(23);
}
That's it. No matter how many times I look at it I can't see where I've got any code wrong. Just to make sure, I've tried it again, copying your code above and just changing the numbers. Again I get the blank page.
Is there any other reason this would not be working?
Re: Better Together Contribution Support Thread
If you're getting a blank page, you'll need to follow these directions to debug it:
http://www.zen-cart.com/forum/showthread.php?t=84613
Re: Better Together Contribution Support Thread
Slightly later:
After trying again with your code above, I have finally got it to work - by leaving off the trailing bracket. Whether it's supposed to be there or not I'm not sure but my installation seems to work without it, which is all that matters.
Re: Better Together Contribution Support Thread
Hmmm.... you might be getting in trouble with having blank lines after the
?>
Be sure when you transfer files to your server that the very last line is that closing tag.
Re: Better Together Contribution Support Thread
It is, there are no blank lines after ?> The bracket I removed was at the end of your code above.
Re: Better Together Contribution Support Thread
Better Together 2.2 is now available. This version features another tax setting (Re-Calculate Tax = VAT) for tax included shops. If you do not run with Display Prices with Tax = true, you may skip this upgrade.
An additional change was made for currency-based discounting for tax included shops. Now *all* discounts - not just percent off discounts - are grossed up for taxes if you use include_tax = yes. In some earlier versions, I tried not grossing up dollar based discounts. However, I believe uniform treatment is a more consistent and logical approach.
Re: Better Together Contribution Support Thread
Better Together will work fine for non-VAT liable, non-tax-included shops in 1.3.9. I will release another version after 1.3.9 is finalized which is compliant with the new style of tax handling for tax-included shops in 1.3.9.