Add gift to cart

Ariel Mitevski asked on May 5, 2016 12:30

Hello,

I would like to add a link to a free product (gift) in the shopping cart.

The product would be existing in the Kentico catalog but should not be available to buy on the website (or appearing in the search results) expect in the checkout process where the customer could add it as a gift (under certain conditions like a shopping cart > 100$ for instance).

I thought about using the web part personalized variants in order to display the link only for specific cases using macro rules but I'm not sure how to add the link that will dynamically add the product to the shopping cart and how to create products that would be exclusively added through that link...

Is there a way to achieve that using Kentico built-in functionalities? Could the Catalog Discount feature be relevant in that case?

All the best,

Recent Answers


Anton Grekhovodov answered on May 5, 2016 14:17

Hi,

You can use Stand-alone SKU for your gifts.

But I'm afraid that you need to write your own custom code to add it to shopping cart.

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on May 5, 2016 14:34

Hi Ariel,

I may not be able to give you all answers but few.

  1. Product status - Did you check this link on Product status. This link talks about mantaining product status inetrnally and externally. This should solve your purpose

  2. Product Not searchable - I think you can go to your Index and goto Exclude section and define the path to the link. This will make sure that your that particular Product wil not be indexed by Kentico's Lucene Indexer.

  3. Adding a product - I am not sure if this could be achieved using macros out of the box. You will need to check the Basket Value when a product is added to see if the amount is equla to or exceeds a certain value ECommerceContext.CurrentShoppingCart.TotalItemsPrice > 100 Then use a trigger to add this new Product using SKU's?

    This example might help you - Shopping Carts

Cheers, Chetan

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.