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

#   Buy a one product and get another for free

##

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

Less More

- Posts: 23
- Thank you received: 1
-
-

11 years 7 months ago [\#196145](#196145) by [Genusskanzlei](/forum/user/30057-genusskanzlei "View Genusskanzlei's Profile")  *[Buy a one product and get another for free](/forum/46-discount-coupon/875939-buy-a-one-product-and-get-another-for-free#196145 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.22 -- Error-message(debug-mod must be tuned on) -- : None  Hi!  I would like to know how can I set an offer as follow: When a customer buys a box of Wine (for example), he will get an extra product for free. Which means that when the customer places the box of wine in the shopping car, the additional product offered also should go into the shopping car too.  I hope I made my self clear.  Looking forward to your answer and possible solutions  Genusskanzlei")* was created by *[Genusskanzlei](/forum/user/30057-genusskanzlei "View Genusskanzlei's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.22
-- Error-message(debug-mod must be tuned on) -- : None

Hi!

I would like to know how can I set an offer as follow:
When a customer buys a box of Wine (for example), he will get an extra product for free. Which means that when the customer places the box of wine in the shopping car, the additional product offered also should go into the shopping car too.

I hope I made my self clear.

Looking forward to your answer and possible solutions

Genusskanzlei

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzU5MzktYnV5LWEtb25lLXByb2R1Y3QtYW5kLWdldC1hbm90aGVyLWZvci1mcmVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#196149](#196149) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Buy a one product and get another for free](/forum/46-discount-coupon/875939-buy-a-one-product-and-get-another-for-free#196149 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.22 -- Error-message(debug-mod must be tuned on) -- : None  Hi!  I would like to know how can I set an offer as follow: When a customer buys a box of Wine (for example), he will get an extra product for free. Which means that when the customer places the box of wine in the shopping car, the additional product offered also should go into the shopping car too.  I hope I made my self clear.  Looking forward to your answer and possible solutions  Genusskanzlei")*

Hi,

This will require the creation of a plugin, plugin based on the function "onAfterCartUpdate()".
Then do a check on the added product, and add a free product if it is the correct product added in the cart.
You will have too to remove the free product if the box of Wine is removed from the cart.

This require PHP knowledges, here is the developer documentation:
[ www.hikashop.com/support/support/documen...r-documentation.html](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzU5MzktYnV5LWEtb25lLXByb2R1Y3QtYW5kLWdldC1hbm90aGVyLWZvci1mcmVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 24
- Thank you received: 1
-
-

10 years 1 month ago [\#249954](#249954) by [pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")  Replied by *[pcomelearning](/forum/user/44215-pcomelearning "View pcomelearning's Profile")* on topic *[Buy a one product and get another for free](/forum/46-discount-coupon/875939-buy-a-one-product-and-get-another-for-free#249954 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.22 -- Error-message(debug-mod must be tuned on) -- : None  Hi!  I would like to know how can I set an offer as follow: When a customer buys a box of Wine (for example), he will get an extra product for free. Which means that when the customer places the box of wine in the shopping car, the additional product offered also should go into the shopping car too.  I hope I made my self clear.  Looking forward to your answer and possible solutions  Genusskanzlei")*

Can't you just create a coupon code that give 100% off a product when the user buys two or more?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzU5MzktYnV5LWEtb25lLXByb2R1Y3QtYW5kLWdldC1hbm90aGVyLWZvci1mcmVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

10 years 1 month ago [\#249960](#249960) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Buy a one product and get another for free](/forum/46-discount-coupon/875939-buy-a-one-product-and-get-another-for-free#249960 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.22 -- Error-message(debug-mod must be tuned on) -- : None  Hi!  I would like to know how can I set an offer as follow: When a customer buys a box of Wine (for example), he will get an extra product for free. Which means that when the customer places the box of wine in the shopping car, the additional product offered also should go into the shopping car too.  I hope I made my self clear.  Looking forward to your answer and possible solutions  Genusskanzlei")*

Yes, but only if the product you want to offer is the same than the one in the cart. In that case, @Genusskanzlei wanted to offer another product. Thus, it's not possible with a coupon as the coupon either applies on the whole cart, or the product that you selected in its products restriction field, and it can't add another product to the cart.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzU5MzktYnV5LWEtb25lLXByb2R1Y3QtYW5kLWdldC1hbm90aGVyLWZvci1mcmVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.117 seconds

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

[](#top)
