Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

[Contribution] Better Together Discounting Module


55 replies to this topic

#1 swguy

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 08 May 2009, 06:08

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.

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

  • Community Member
  • 1 posts
  • Real Name:Andrew Sullivan

Posted 15 May 2009, 09:18

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 15 May 2009, 10:17

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 25 May 2009, 17:37

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

  • Community Member
  • 223 posts
  • Real Name:Ken
  • Gender:Male
  • Location:UK

Posted 27 May 2009, 20:25

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 27 May 2009, 21:39

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

  • Community Member
  • 64 posts
  • Real Name:Eirik

Posted 27 May 2009, 22:19

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

#8 swguy

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 27 May 2009, 22:27

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

  • Community Member
  • 64 posts
  • Real Name:Eirik

Posted 27 May 2009, 22:41

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 28 May 2009, 00:30

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

  • Community Member
  • 223 posts
  • Real Name:Ken
  • Gender:Male
  • Location:UK

Posted 28 May 2009, 00:57

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

  • Community Member
  • 264 posts
  • Real Name:Nancy O

Posted 01 June 2009, 16:58

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 01 June 2009, 17:06

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

  • Community Member
  • 264 posts
  • Real Name:Nancy O

Posted 01 June 2009, 17:28

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 02 June 2009, 00:44

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 14 June 2009, 16:23

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

  • Community Member
  • 5 posts
  • Real Name:Erwin

Posted 18 June 2009, 19:57

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 18 June 2009, 21:38

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

  • Community Member
  • 5 posts
  • Real Name:Erwin

Posted 18 June 2009, 22:09

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

  • Community Member
  • 153 posts
  • Real Name:Scott Wilson
  • Gender:Male
  • Location:Tampa Bay, Florida

Posted 19 June 2009, 11:00

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.

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