PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[CONTRIBUTION] Better Together Discounting Module

78 replies to this topic
#1
swguy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 95 posts
If you'd like to offer BOGO or BOGOF deals, "Buy A, get B at a discount", "Buy A get B free" and that sort of thing, you can now do so with my Better Together module.

http://www.thatsoftw...r_together.html

Happy Discounting,
That Software Guy
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html

Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/

#2
21846657

    PrestaShop Fanatic

  • Moderators
  • 1139 posts
a very nice solution to enhance selling. thank you mate. also vote for that flexible discount framework!

Rockin'

* 欢迎访问PrestaShop官方中文论坛

* 搜索是你的朋友。提问之前请善用搜索引擎和论坛搜索。

* 未获得帮助?——请详述问题,提供PrestaShop版本、运行环境(Web Server/PHP/MySQL)、浏览器类型等必要信息。

* 如果问题解决了,请为你的帖子标题加上[已解决]。谢谢。

#3
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
Thanks for this contribution ! :-)

#4
exadra37

    PrestaShop Apprentice

  • Moderators
  • 374 posts
I just have made the download and i will try in localhost and then will give my opinion :)

Thanks for the contribution ;-)

If you want you can see my contributions in my signature.

Best Regards

#5
OnlineBeautyLtd

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts
Hi thanks for this, I have noticed that this is only compatible with 1.2, is there anyway that you can make this comaptible to 1.1 as we cannot currently upgrade due to custom database changes.

We will be more than happy to make a donation if you are able to make it compatible with 1.1

Many thanks

#6
VIXUS

    PrestaShop Addict

  • Members
  • PipPipPip
  • 583 posts
yeah 1.1 is still verry common (i am also on 1.1 :-) )

#7
sgtbash

    PrestaShop Apprentice

  • Members
  • PipPip
  • 107 posts
This is a great module, although is there a future with it working with the AJAX cart?

Its not real biggy, just one of the features of Prestashop that I really liked over my current evil Actinic is the 'dont direct to a cart summary' to add a product (AJAX) cart.

This would be great!
Nineplus USA - Now on Prestashop 1.4.7

#8
ysco

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1015 posts
Thanks for this nice module, will try it ;)

best regards ysco..

#9
swguy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 95 posts

From 1255502437:

This is a great module, although is there a future with it working with the AJAX cart?


The only reason I didn't do that is that it would involve several more core file changes, and I wanted to reduce the number of required changes. My hope (see signature) is that PrestaShop will build the scaffolding in for people like me to write modules like this *without* needing core file changes. Please vote for my feature request to encourage them to do so.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html

Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/

#10
swguy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 95 posts

From 1255456826:

Hi thanks for this, I have noticed that this is only compatible with 1.2, is there anyway that you can make this comaptible to 1.1 as we cannot currently upgrade due to custom database changes.


You need to figure out how to apply these customizations to the latest version and have an upgrade strategy for your store. If you stay at an older version, you will miss important fixes.

For the time being, I will be actively supporting the latest version of PrestaShop only. There may come a time when it's feasable to support multiple releases, but that's probably a long ways off.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html

Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/

#11
sgtbash

    PrestaShop Apprentice

  • Members
  • PipPip
  • 107 posts

From 1255509830:


The only reason I didn't do that is that it would involve several more core file changes, and I wanted to reduce the number of required changes. My hope (see signature) is that PrestaShop will build the scaffolding in for people like me to write modules like this *without* needing core file changes. Please vote for my feature request to encourage them to do so.


Ah ok, understood - thanks for confirming.

I've already signed the feature request thing =)

All the best

Dan
Nineplus USA - Now on Prestashop 1.4.7

#12
oriflameorge

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts
is there any way to use this module (the $ discount) with tax included ? using some calculations there are always some differences in cents.

there is also some Zen Cart Modules like Better Together Promotional Page (http://www.zen-cart....roducts_id=1396).

Any plans to make them also for prestashop ?

Or better yet the extensions for oscommerce in here http://www.thatsoftw...oscommerce.html ?

#13
swguy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 95 posts

From 1255692841:

is there any way to use this module (the $ discount) with tax included ? using some calculations there are always some differences in cents.


Are the differences rounding errors or is the tax not being taken into account. I am using the cart's tax settings.

Quote


there is also some Zen Cart Modules like Better Together Promotional Page (http://www.zen-cart....roducts_id=1396).

Any plans to make them also for prestashop ?

Or better yet the extensions for oscommerce in here http://www.thatsoftw...oscommerce.html ?


LOL!! One thing at a time. What I need first is to get the discounting framework into PrestaShop so we don't have to modify core files to do this sort of thing. Please vote for my feature request!
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html

Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/

#14
oriflameorge

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts
i already voted. :-)
I have to say that this module is excelent. Congratulations.

The problem is that the discount that i make is on the final price with tax. For example i have a product that cost 18€. The final price will be 2.95€. So the discount is 15.05€ with tax. but the amout i had to put in the module is 12.54166667. This is the result that i need to have there so that with a 20% tax the final amount is 15.05€ with tax.

$this->add_prod_to_prod(171,1639,"$", 12.5416666667);
$this->add_prod_to_prod(46,47,"$", 14.2083333333);
$this->add_prod_to_prod(29,32,"$", 16.7083333333);
$this->add_prod_to_prod(141,142,"$", 11.7083333333);
$this->add_prod_to_prod(156,158,"$", 18.3750000000);
$this->add_prod_to_prod(59,58,"$", 8.3750000000);
$this->add_prod_to_prod(26,27,"$", 16.7083333333);
$this->add_prod_to_prod(105,101,"$", 12.5416666667);
$this->add_prod_to_prod(1643,1564,"$", 9.2083333333);
$this->add_prod_to_prod(95,96,"$", 16.7083333333);
$this->add_prod_to_prod(133,130,"$", 6.7083333333);
$this->add_prod_to_prod(11,12,"$", 5.8750000000);

for example. And because these are infinite number, multiplying then will not give the same result and the initial amount of reduction. In some cases there is an error of 1 or 2 cent. Its not the amount in question, but sound weird to the costumer to have a reduction of 15,06 or something like that.

It would be nice in the PHP to have an option to select with or without tax the reduction that is put on the module.

maybe you could address this issue later on ;)

#15
swguy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 95 posts
Thank you - this is exactly the kind of feedback I was hoping for.
I will build some more options into the next version to deal with this issue.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html

Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/

#16
oriflameorge

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts
Just had a thought.
Bare with me... i know nothing of php language or programming :)

$this->add_prod_to_prod(50(2),60(1),”$”, 10);

Is this possible? If buying 2 items of id50, get 10$ of id60

$this->add_prod_to_prod(50(3),60(1),”%”, 100);

If buying 3 items of id50, get one id60 for free

$this->add_prod_to_prod(50(2),50(1),”%”, 100);

Take 2 id50 get 1 for free

And so on...

I think this would take care of almost every type of discount we could imagine along with the already existing in your module.

#17
swguy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 95 posts
No, Better Together is just "Buy A get B at a discount." If we can get a discounting framework built into PrestaShop, I will add what you're describing later.
That Software Guy - http://www.thatsoftwareguy.com
My Mods: Better Together, Boilerplate Description, Sort order in CMS
http://www.thatsoftw...prestashop.html

Please support my feature request for a generalized fee/discount framework in PrestaShop: http://www.prestasho...cker/view/3044/

#18
hawaii350

    PrestaShop Apprentice

  • Members
  • PipPip
  • 54 posts
Fantastic, I'm going to try it out this weekend

#19
johnny_99

    PrestaShop Newbie

  • Members
  • Pip
  • 22 posts
Hi is this compatabile with 1.2.5? Also Im uinsure but does this actually give me a % reduction on the total amount of the cart eg 10% if cart order greather than 1000, 15% if greater then 1500 etc. Thanks

#20
mohsart

    PrestaShop Addict

  • Members
  • PipPipPip
  • 507 posts
A GUI would be nice ;-)
Great stuff, but I miss as a customer seeing what other items I will get a discount on. If it is to boost the sales, it must be clear before they choose a product that they will get it for eg 50%...
Or did I miss something?

/Mats
I'm on 1.4.3 if nothing else is stated. My blog about using PrestaShop http://mohsart-prest...p.blogspot.com/ (I'm a n00b myself, so much is very basic)

NOTE! When I say "change xxx" I usually mean what is described here

My shop: http://mohsart.se