Add To Bag 

Add To Bag 

Add to Bag is one of the basic actions on the Kuika platform that allows a product or item to be added to the user's shopping cart. It is used in e-commerce, reservation, or selection-based applications to temporarily store user preferences on the client side. With this action, content can be easily added to a dynamically defined shopping cart (bag).

Technical Features

  • Data Addition: Adds a new item to a defined bag.
  • Dynamic Parameters with Symbol Picker: Both bag and item information can be dynamically retrieved from screen components or data sources via the Symbol Picker.
  • Multi-Bag Support: Multiple bag logic can be managed with different “bag key” definitions.
  • Web and Mobile Compatibility: The action works in both web and mobile apps.
Add to Bag Action Application Steps

Defining the Action in UI Design

  1. Log in to the Kuika platform.
  2. Select your project from the Apps screen.
  3. Go to the UI Design module.
  4. Open the product listing or product details screen.
  5. Place an “Add to Bag” button on the product card or detail page.
  1. Select this button and add the + ADD ACTION → appropriate trigger (Initial Actions, OnClick, etc.) → BagAdd to Bag action from the Properties panel.

Configuring Action Parameters

  • Bag Key (Required – Symbol Picker): The ID of the bag to which the product will be added. This value can be entered as a fixed value or determined dynamically. For example: “default”, wishlistBagKey,
  • Bag Item (Required – Symbol Picker): Any object/list on the Kuika platform to be added to the bag. It is usually sent as a JSON object and contains the following information:
{‘id’: product.id,“name”: product.name,‘price’: product.price,‘quantity’: 1}

  • This structure is dynamically linked by taking data from data sources or form inputs.
  • The Bag Key and Bag Item parameters must be linked via Symbol Picker. It is recommended to use values specific to each user and instant values instead of fixed data.
Usage Scenario: Adding to Cart from Product Card

When the ‘Add to Cart’ button in a product list is clicked, the relevant product information should be added to the default cart.

Configuration Steps:

  1. Go to the product list or detail screen.
  2. Display product information via a form or data binding.
  3. Place an ‘Add to Cart’ button on each product card.
  4. Add the following action to this button:
    • ADD ACTION → OnClick → Bag → Add to Bag
  5. Link the parameters as follows:
    • Bag Key: ‘default’ (or dynamic, such as currentUser.id + ‘_bag’)
    • Bag Item:
{‘id’: product.id,‘name’: product.name,“price”: product.price,‘quantity’: 1}

Add to Bag Action Advanced Customisations
  • Category-based Bags: Separate Bag Keys can be defined for different product types. For example: ‘electronics_bag’, “furniture_bag”.
  • Visual Notification: The user can be notified with a Notify action after adding an item.

Technical Risks and Precautions

  • Multiple Addition: Preventing the same item from being added to the cart multiple times or allowing it to be added in a controlled manner.

The Add to Bag action is one of the most effective ways to manage user interactions and start processing selections in the system. It can be easily applied in any scenario based on cart logic and provides a powerful shopping/ordering experience when used in conjunction with other actions.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar