Skip to main content

Buy One Get One Free feature

13 years 11 months ago #78425 by scooterpk
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.

13 years 11 months ago #78445 by Jerome
Replied by Jerome on topic Buy One Get One Free feature
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.

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

13 years 11 months ago #78449 by scooterpk
Will wait patiently! ;) What PHP code would you recommend? and in which view?

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

13 years 11 months ago #78460 by Jerome
Replied by Jerome on topic Buy One Get One Free feature
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.

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

13 years 9 months ago #85830 by esotechie
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.

13 years 9 months ago #85918 by Jerome
Replied by Jerome on topic Buy One Get One Free feature
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.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum