Re: Better Together Contribution Support Thread
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.
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
swguy
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.
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
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
albertomrubio
Is there a posibility to list all Better Toguether products on one list just like Specials items?
OK, this is now ready. Right now it's just a zip file on my website; I guess if people like it I'll submit it to the download area, but I wanted to keep it out of the main contribution so that people would have a choice of whether or not to use it. Here's the zip:
http://www.thatsoftwareguy.com/promo_better.zip
and if you want to see what it looks like before installing it, here's an example:
http://www.thatsoftwareguy.com/swguy...together_promo
Scott
Re: Better Together Contribution Support Thread
Better Together 1.5 has been released and is available in the download area.
It builds on the introduction of tpl_better_together_marketing.php (as the way to add marketing text to the product info page) in the following ways:
- The marketing text has been consolidated to a single div named
betterTogetherDiscountPolicy. This div is only created when it is needed,
so you are now free to style it with a border. If you have styled
"discountPolicy" and "discountPolicyReverse" (the previous names), please
incorporate this name change into your stylesheet.
- Some wording changes have been made to the marketing text to further
clarify the discount being offered. If you have made changes to the
language file, you will want to install the new one and merge your changes.
In particular, the change noted in post 97
http://www.zen-cart.com/forum/showpo...7&postcount=97
is critical for two for one category discounts, and must be installed. Other
changes are required to align the marketing text with how the code actually works.
The core contribution does not include the "Promotional Page" described in the previous
post, which is packaged separately and is available as a free download off my site.
Thank you,
That Software Guy
Re: Better Together Contribution Support Thread
If you are using Better Together and want to use Google Checkout, please upgrade to Better Together 1.5a. A bug was detected in the process() routine in ot_better_together.php that makes Google Checkout unable to determine the discount. Of course, you will also need to be running Google Checkout v1.4.1_beta2 (or better), which contains the fixes required to make Order Total modules work.
If you have made significant changes outside of the setup() routine and just want to merge in this change, look for the string 'value'. You will see
Code:
'value' => $this->deduction);
Change this to
Code:
'value' => $od_amount['total']);
So the whole block should look like this:
Code:
$this->output[] = array('title' => $this->title . ':',
'text' => '-' . $currencies->format($od_amount['total'], true, $order->info['currency'], $order->info['currency_value']),
'value' => $od_amount['total']);
Thank you,
That Software Guy
Re: Better Together Contribution Support Thread
swguy,
this mod was working okay and I have just added a second promo and now I get this error regardsless of how many promos it only goes if I take all promos off the module ot_betther_together.php file
error is
Parse error: syntax error, unexpected $end in /secure/f/mydomain/includes/modules/order_total/ot_better_together.php on line 457
odd it should suddenly occur. I have even taken a new copy of the file from the down load incase I had deleted something by error.
But still get issue. Look forward to your help and thoughts
MG
Re: Better Together Contribution Support Thread
Typically this indicates a brace or bracket imbalance.
Re: Better Together Contribution Support Thread
Swguy,
thank you for your speedy response. Would that be in the same file as the error (sorry not a php programmer at all)? i.e. the includes/modules/ot_bettertogether.php file rather than any where else and any clues on how to work out (I am assuming I need to go from the start of the file and work out all pairings and then close off accordingly.)
Odd it was working and then I just added an offer and it fell over?
Thanks
MG
Re: Better Together Contribution Support Thread
Quote:
Originally Posted by
MikeyG
I am assuming I need to go from the start of the file and work out all pairings and then close off accordingly.
This is not what I would do. Instead, I would get a fresh copy of the file, type in the first discount, test. Type in the second discount. Test. Do not copy and paste; you'll copy and paste your error.
I would also delete all the comments and examples from the setup() function so that what you're doing is clear.
Quote:
Odd it was working and then I just added an offer and it fell over?
Not odd at all. You're modifying code. Every little bit counts.
Re: Better Together Contribution Support Thread
Swguy,
Thanks for the methodology. I did just start from a new file and add one offer but it fell over. I will try again
Regards
MG