[Skip to main content](#vessel-content)

#   Buy One Get One Free feature

##

- **[scooterpk](/forum/user/11175-scooterpk "View scooterpk's Profile")**
- [![scooterpk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11175-scooterpk "View scooterpk's Profile") Topic Author
- [ Offline](/forum/user/11175-scooterpk)

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 11 months ago [\#78425](#78425) by [scooterpk](/forum/user/11175-scooterpk "View scooterpk's Profile")  *[Buy One Get One Free feature](/forum/4-how-to/76093-buy-one-get-one-free-feature#78425 "Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the...")* was created by *[scooterpk](/forum/user/11175-scooterpk "View scooterpk's Profile")*

Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the sticker is $5. shipping on all stickers is free so no problem there. Basically when someone buys 'X' sticker it'll show a 'free' sticker of the same type in the cart. We are using the 'free' version but would gladly upgrade if this feature is available.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDkzLWJ1eS1vbmUtZ2V0LW9uZS1mcmVlLWZlYXR1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78445](#78445) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Buy One Get One Free feature](/forum/4-how-to/76093-buy-one-get-one-free-feature#78445 "Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the...")*

Hi,

This feature is not implemented in HikaShop but is in our TODO list.
For the moment, this feature could be implemented by adding some PHP code into some views or via plugin.
We want to make a more generic function in order to create "coupon" which would not create a price discount but would add a product in the cart.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDkzLWJ1eS1vbmUtZ2V0LW9uZS1mcmVlLWZlYXR1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[scooterpk](/forum/user/11175-scooterpk "View scooterpk's Profile")**
- [![scooterpk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11175-scooterpk "View scooterpk's Profile") Topic Author
- [ Offline](/forum/user/11175-scooterpk)

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 11 months ago [\#78449](#78449) by [scooterpk](/forum/user/11175-scooterpk "View scooterpk's Profile")  Replied by *[scooterpk](/forum/user/11175-scooterpk "View scooterpk's Profile")* on topic *[Buy One Get One Free feature](/forum/4-how-to/76093-buy-one-get-one-free-feature#78449 "Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the...")*

Will wait patiently! ![;)](/media/kunena/emoticons/24.png ";)") What PHP code would you recommend? and in which view?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDkzLWJ1eS1vbmUtZ2V0LW9uZS1mcmVlLWZlYXR1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78460](#78460) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Buy One Get One Free feature](/forum/4-how-to/76093-buy-one-get-one-free-feature#78460 "Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the...")*

Hi,

Using views, you can put some code in the "checkout / step" but the problem would be that, the customer should go to the checkout to have the product modification.
I think that the trigger "onBeforeCartUpdate" would be better.
This trigger have the parameters: &amp;$cartClass, &amp;$cart, $product_id, $quantity, $add, $type, $resetCartWhenUpdate, $force, &amp;$do

So, by making a small plugin, you would be able to get the cart content before his update.
Checking products, removing or adding some.
The base of this trigger is when the $product_id would be update with the $quantity.
The parameter $do allows you to forbidden the update.
The $cart object would contain the current cart, before the update of the product ($product_id).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDkzLWJ1eS1vbmUtZ2V0LW9uZS1mcmVlLWZlYXR1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile")
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

13 years 9 months ago [\#85830](#85830) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Buy One Get One Free feature](/forum/4-how-to/76093-buy-one-get-one-free-feature#85830 "Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the...")*

Will this allow the scenario that if they buy 3 products they get the cheapest free?

And is this yet scheduled on the to do list?

Thank

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDkzLWJ1eS1vbmUtZ2V0LW9uZS1mcmVlLWZlYXR1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 9 months ago [\#85918](#85918) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Buy One Get One Free feature](/forum/4-how-to/76093-buy-one-get-one-free-feature#85918 "Anyone figure out how to set this up or if its possible for a buy one get one free. We sell stickers...and are offering a buy one sticker, get another of the same sticker free. The price for the...")*

Hi,

There is no schedule yet and I am not sure that we could provide such advanced scenario in the first version of the feature.
It would be best to do it thanks to custom plugins because the scenario is quite too complex.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2MDkzLWJ1eS1vbmUtZ2V0LW9uZS1mcmVlLWZlYXR1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.077 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
