swguy Posted May 8, 2009 Share Posted May 8, 2009 (edited) Better Together for osCommerce is now available for download. It allows you to perform the following discounts: - Two for one on a specific product (BOGOF) - Two for one for all products in a specific category - Buy one specific product, get another specific product at a discount - Buy one specific category, get another specific category at a discount - Buy one specific product, get a product from a specific category at a discount - Buy an item from a specific category, get a specific product at a discount. Discounts may be expressed in dollars (i.e. currency units) off or in % off. Better Together is here: http://addons.oscommerce.com/info/6733 Edited May 31, 2009 by Jan Zonjee Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
sullivan_a Posted May 15, 2009 Share Posted May 15, 2009 Firstly I must thank you for this add-on, it's by far the best product "package discount" module I've found; great work :) However I would like to make one suggestion, it would be great to be able to associate one "parent" item with multiple discount/package rules. In the current Better Together Discounting Module for each package there must be one "parent" for each corresponding "child" product. Please take the following as an example: Rule 1) $this->add_prod_to_prod(A, B, "%", 10); Rule 2) $this->add_prod_to_prod(A, C, "%", 15); Rule 3) $this->add_prod_to_prod(A, D, "$", 50); Rule 4) $this->add_prod_to_prod(A, E, "%", 2); Assume that 1 of each 'A' - 'E' is in the active cart. As you can see I desire that with the purchase of product 'A' (in any quantity) that a customer be entitled all/any of 10% off 'B', 15% off 'C', $50 off 'D' and 2% off 'E'. As it stands this works only if there are as many of product 'A' in the cart as there are associated rules e.g. if there is a quantity of 2 then only rules 1 - 2 are applied and items 'D' & 'E' have their discounts ignored. Top Job :thumbsup: Quote Link to comment Share on other sites More sharing options...
swguy Posted May 15, 2009 Author Share Posted May 15, 2009 Thank you for your kind words. The scope of Better Together is really just "buy A get B at a discount," so I never extended it the way you describe. I did write a more complex discounting algorithm for Zen Cart which allowed what you're asking for ("buy A, get all of B, C, D, E at a discount"), but since it also allowed every possible permutation of that (e.g. "get 2|3 of B,C,D,E", "get B,C,D,E if all are purchased", "get C,D,E if A, B purchased," etc.), the specification mechanism is much more complex. Good luck with your online venture! Scott Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
swguy Posted May 25, 2009 Author Share Posted May 25, 2009 Better Together can be seen live on my test cart at http://thissoftwareguy.com/osc_2_2/ Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
Ken44 Posted May 27, 2009 Share Posted May 27, 2009 Hi Scott Thanks for a great contribution, very easy install, and working perfectly. Is there any way this can be amended for three, four or even more different items together? buy A and B and C to get D at a discount. Or is there another contribution that can do this? You may wish to change the link in the post above because it is linking to the wrong contribution The correct link is http://addons.oscommerce.com/info/6733 Also there is a missing > in the instructions Line 223 should be ?> Regards Ken. Quote Link to comment Share on other sites More sharing options...
swguy Posted May 27, 2009 Author Share Posted May 27, 2009 You may wish to change the link in the post above because it is linking to the wrong contributionThe correct link is http://addons.oscommerce.com/info/6733 Ack! Moderator, please fix if possible - don't know how this got messed up. Ken, I've beefed up the readme and fixed this typo in the next release. The answer to your other question is that Better Together is only for pairing items. I have some more complex discounting software that I will adopt to osCommerce later on. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
Eirik Posted May 27, 2009 Share Posted May 27, 2009 Scott, trying to find which products on your test site have better together setup, all I can see is the quantity discount. Quote Link to comment Share on other sites More sharing options...
swguy Posted May 27, 2009 Author Share Posted May 27, 2009 On the front page of my shop, click "Better Together" then scroll down to "See it live." What I've done is documented there. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
Eirik Posted May 27, 2009 Share Posted May 27, 2009 On the front page of my shop, click "Better Together" then scroll down to "See it live." What I've done is documented there. Thanks Scott, I read through that before but didn't catch that the example about the marketing was how it alerted customers to the available discount. Going to have a long look at it this weekend, thanks so much for the speedy reply earlier. Eirik. Quote Link to comment Share on other sites More sharing options...
swguy Posted May 28, 2009 Author Share Posted May 28, 2009 I just adjusted the marketing text on my test site to give it a yellow background - this makes it a bit more visible when you're trying to see the effect. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
Ken44 Posted May 28, 2009 Share Posted May 28, 2009 I have some more complex discounting software that I will adapt to osCommerce later on. Great. I will look forward to this. :thumbsup: Regards Ken. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2009 Share Posted June 1, 2009 I'd love for images to show Ex: Buy (image) and (image) and save $x Can that be done with this contribution? Quote Link to comment Share on other sites More sharing options...
swguy Posted June 1, 2009 Author Share Posted June 1, 2009 I'd love for images to show Ex: Buy (image) and (image) and save $x Can that be done with this contribution? You'd have to write software; nothing is built in at the moment. But this is on my big fun list of things to do. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2009 Share Posted June 1, 2009 You'd have to write software; nothing is built in at the moment. But this is on my big fun list of things to do. Looking forward to it. How can I adjust the font type? Quote Link to comment Share on other sites More sharing options...
swguy Posted June 2, 2009 Author Share Posted June 2, 2009 How can I adjust the font type? Added documentation on this : http://www.thatsoftwareguy.com/osc_better_....html#marketing Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
swguy Posted June 14, 2009 Author Share Posted June 14, 2009 Better Together 1.0.1 has been released; this version is compatible with the Order Editor contribution. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
erwindr Posted June 18, 2009 Share Posted June 18, 2009 Hi Scott, I have tried your 'Better Together' on an (almost) stock osC 2.2 and it works perfectly. But once I proceed and install the OT module on a osC 2.2 with CCGV (Coupon Code / Gift Voucher) contrib installed (the live shop), the checkout procedure stalls on the checkout_payment page, just below the payment selection, where the CCGV box is. Your addons (checkout candy and the discount preview) look promising also but this is a showstopper. I don't have a clue why this happens, tried in on two installs (MS2 and RC2a, both with CCGV) with the same result. Any ideas? Thanks! Erwin Quote Link to comment Share on other sites More sharing options...
swguy Posted June 18, 2009 Author Share Posted June 18, 2009 Please post a link to the CCGV contribution you're using. Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
erwindr Posted June 18, 2009 Share Posted June 18, 2009 Hi Scott, This is the CCGV contrib. It's been around for quite some time: http://addons.oscommerce.com/info/282 Tried it with CCGV 5.05 in place (really old but working) and with 5.13. Both with exactly the same result. Regards! Erwin Quote Link to comment Share on other sites More sharing options...
swguy Posted June 19, 2009 Author Share Posted June 19, 2009 (edited) Erwin, I just did this and it worked fine on a stock cart + CCGV + Better Together. I used the latest CCGV from 14 Apr 09. You have made another change which is breaking things, or perhaps it's the version of CCGV you're using. Edited June 19, 2009 by swguy Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
erwindr Posted June 19, 2009 Share Posted June 19, 2009 Hi Scott, Thank you for your prompt reply. I must admit CCGV has given me headaches in the past. Sure my osC install was changed/modded over time. When time passes it's difficult not to change or add anything. There are always these nice goodies waiting to be implemeted. I will first see if I can upgrade CCGV and not break anything else. Thank you so much for testing. It gives me a start in the right direction. Kind regards, Erwin Quote Link to comment Share on other sites More sharing options...
ghirsch Posted June 21, 2009 Share Posted June 21, 2009 Please forgive my programming skills but I am still trying to figure out how to modify the marketing text. How do I modify this code: <?php require(DIR_FS_CATALOG. 'better_together_marketing.php'); if (sizeof($bt_strings) > 0) { for ($i = 0, $n = sizeof($bt_strings); $i < $n; $i++) { echo '<tr><td>' . $bt_strings[$i] . '</td></tr>'; } } ?> to include <tr style="margin-left:25px; border: 1px solid #000000; width: 600px; padding: 5px; background: #ffffcc;"> Im not sure where it belongs. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
swguy Posted June 21, 2009 Author Share Posted June 21, 2009 Change echo '<tr><td>' . $bt_strings[$i] . '</td></tr>'; to echo '<tr style="margin-left:25px; border: 1px solid #000000; width: 600px; padding: 5px; background: #ffffcc;"><td>' . $bt_strings[$i] . '</td></tr>'; Quote Contributions: Better Together and Quantity Discounts for osCommerce 2.3.x and Phoenix. See my profile for more details. Link to comment Share on other sites More sharing options...
ghirsch Posted June 22, 2009 Share Posted June 22, 2009 Great, thank you so much. Quote Link to comment Share on other sites More sharing options...
t_baron Posted June 22, 2009 Share Posted June 22, 2009 Hi, Just installed Better Together on (a heavily modded) osc 2.2. The order_total module works fine, displays and deducts the discount but for the life of me I can't get the marketing code to work in product_info.php, no error message, it simply doesn't display anything. A quick check of the source code in the final page shows that the the code is being processed since " <!-- bof Better Together Marketing --> <!-- eof Better Together Marketing -->" appears, but nothing else. I tried replacing some of the code in the expression just to test where the problem is, First I tried; require(DIR_FS_CATALOG. 'better_together_marketing.php'); if (sizeof($bt_strings) > 0) { echo '<tr><td>Test</td></tr>'; } Still nothing, but I had a hunch that it wasn't obtaining the correct value for sizeof($bt_strings) and tried; require(DIR_FS_CATALOG. 'better_together_marketing.php'); if (sizeof($bt_strings) == 0) { echo '<tr><td>Test</td></tr>'; } Sure enough the "Test" text appeared when I reloaded the ammended product_info.php. Really scratching my head on this, I'm no PHP expert but neither am I a complete novice and this seems to be about the simplest mod I've ever installed for OSC! I know it's a tall order but anything at all anyone can suggest would be great. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.