Jump to content



Latest News: (loading..)

- - - - -

[Contribution] Better Together Discounting Module


  • Please log in to reply
62 replies to this topic

#1   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 08 May 2009 - 06:08 AM

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 by Jan Zonjee, 31 May 2009 - 06:26 AM.

Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#2   sullivan_a

sullivan_a
  • Members
  • 1 posts
  • Real Name:Andrew Sullivan

Posted 15 May 2009 - 09:18 AM

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:

#3   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 15 May 2009 - 10:17 AM

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
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#4   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 25 May 2009 - 05:37 PM

Better Together can be seen live on my test cart at http://thissoftwareguy.com/osc_2_2/
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#5   Ken44

Ken44
  • Members
  • 238 posts
  • Real Name:Ken
  • Gender:Male
  • Location:UK

Posted 27 May 2009 - 08:25 PM

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.

#6   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 27 May 2009 - 09:39 PM

View PostKen44, on May 27 2009, 04:25 PM, said:

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

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.
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#7   Eirik

Eirik
  • Members
  • 64 posts
  • Real Name:Eirik

Posted 27 May 2009 - 10:19 PM

Scott, trying to find which products on your test site have better together setup, all I can see is the quantity discount.

#8   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 27 May 2009 - 10:27 PM

On the front page of my shop, click "Better Together" then scroll down to "See it live."  What I've done is documented there.
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#9   Eirik

Eirik
  • Members
  • 64 posts
  • Real Name:Eirik

Posted 27 May 2009 - 10:41 PM

View Postswguy, on May 27 2009, 11:27 PM, said:

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.

#10   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 28 May 2009 - 12:30 AM

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.
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#11   Ken44

Ken44
  • Members
  • 238 posts
  • Real Name:Ken
  • Gender:Male
  • Location:UK

Posted 28 May 2009 - 12:57 AM

Quote

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.

#12   nnclyn

nnclyn
  • Members
  • 265 posts
  • Real Name:Nancy O

Posted 01 June 2009 - 04:58 PM

I'd love for images to show

Ex: Buy (image) and (image) and save $x

Can that be done with this contribution?
Nancy

#13   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 01 June 2009 - 05:06 PM

View Postnnclyn, on Jun 1 2009, 12:58 PM, said:

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.
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#14   nnclyn

nnclyn
  • Members
  • 265 posts
  • Real Name:Nancy O

Posted 01 June 2009 - 05:28 PM

View Postswguy, on Jun 1 2009, 01:06 PM, said:

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?
Nancy

#15   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 02 June 2009 - 12:44 AM

View Postnnclyn, on Jun 1 2009, 01:28 PM, said:

How can I adjust the font type?

Added documentation on this :

http://www.thatsoftwareguy.com/osc_better_....html#marketing
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#16   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 14 June 2009 - 04:23 PM

Better Together 1.0.1 has been released; this version is compatible with the Order Editor contribution.
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#17   erwindr

erwindr
  • Members
  • 5 posts
  • Real Name:Erwin

Posted 18 June 2009 - 07:57 PM

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

#18   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 18 June 2009 - 09:38 PM

Please post a link to the CCGV  contribution you're using.
Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.

#19   erwindr

erwindr
  • Members
  • 5 posts
  • Real Name:Erwin

Posted 18 June 2009 - 10:09 PM

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

#20   swguy

swguy
  • Members
  • 163 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 19 June 2009 - 11:00 AM

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 by swguy, 19 June 2009 - 11:01 AM.

Contributions: Better Together and Quantity Discounts , for osCommerce 2.2, 2.3.1 and 3.0.  See my profile for more details.