Buy a one product and get another for free

  • Posts: 23
  • Thank you received: 1
9 years 7 months ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #196149

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

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 1
8 years 2 months ago #249954

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

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 2 months ago #249960

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 or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum