Coupon 'offers' product

  • Posts: 36
  • Thank you received: 5
10 years 6 months ago #188849

Hi,

Can anyone explain if and how is possible to use a coupon that entitles the user to earn a specific product instead of a discount?
The product would be the ‘prize’ associated with the coupon and the condition to earn it would be to have the coupon and have a cart with a minimum value to be established (let’s say 30€)


PS: I have looked (probably not in the right place) but could not find full information on all the option in the coupons settings. If there's a proper link for the relevant URL page we'll appreciate it as well

Kind regards


VC22

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #188866

Hi,

This is not possible by default in HikaShop.
But creating a plugin for that can do the job.
Plugged on the function "onBeforeCouponCheck(&$coupon,&$total,&$zones,&$products,&$display_error,&$error_message,&$do)" you can check the validity of the coupon and add a product in cart via the plugin.

It require good PHP knowledges, here is the developer documentation:
www.hikashop.com/support/support/documen...entation.html#coupon

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

Time to create page: 0.066 seconds
Powered by Kunena Forum