How to add same products to a shopping cart as separated items

   —   

This article gives you instructions on how to implement the Multiple Items module, which allows you to add products to the shopping cart as separated items instead of increasing their units count.

If you want to have an option to choose if a product will be added to a shopping cart as a new item or if you want all products to be added as new items instead of increasing their units count, you can follow these steps:
Conditional approach, you can decide which product is added as a separate item.

  1. Download this package, import it to Kentico (please don’t forget to check the Import files property in second step.) Also this is just a proof of concept code and hasn't been tested for all scenarios.
  2. Add a new field into the Site Manager -> Development -> System tables -> Ecommerce - SKU -> Fields and set it following values:
    Column name: SKUMultipleItems
    Attribute type: Boolean (Yes/No)
    Field caption: Multiple Items
    Form control type: Input
    Form control: Check box
  3. Set the Multiple Items property for each product you want to add to the shopping cart as separate items.

All products added as separate items approach

  1. Download this package, import it to Kentico (please don’t forget to check the Import files property in second step.
-jh-

 

Share this article on   LinkedIn