Buy One Get One Free feature

  • Posts: 4
  • Thank you received: 0
11 years 11 months ago #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 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 or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78445

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 4
  • Thank you received: 0
11 years 11 months ago #78449

Will wait patiently! ;) What PHP code would you recommend? and in which view?

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78460

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: &$cartClass, &$cart, $product_id, $quantity, $add, $type, $resetCartWhenUpdate, $force, &$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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 180
  • Thank you received: 13
11 years 9 months ago #85830

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 9 months ago #85918

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum