Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Product
  • Overview
  • Usage
  • Components Customization
  • Elements
    • Apps Icons
    • Breadcrumb
    • Color Picker
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Modal
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Reviews
    • Reviews Summary
    • Sheet
    • Skeleton
    • Slider
    • Social
    • Social Share
    • Tabs
  • Form
    • Button
    • Bottom Alert
    • Contacts
    • Date Time Picker
    • File Upload
    • Menu
    • Quantity Input
    • Select
    • Tel Input
  • Product
    • Add Product
    • Advertisement
    • Comments
    • Conditional Offer
    • Gifting
    • Installment
    • Meta Data
    • Offer
    • Offer Modal
    • Orders
    • Payments
    • Product Availability
    • Product Card
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Buy
    • Quick Order
    • Scopes
    • Search
  • User
    • Cart Summary
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Menu
    • User Profile
    • User Settings
    • Verify
  1. Product

Gifting

The <salla-gifting> web component is used to display items as gifts, which can be used after the customer has completed a purchase. It can be customized using the properties' parameters available.
Note
Available API Endpoints for the Gifting component is:
Gift Details
Add Gift To Cart
Upload Gift Image

Example#

Gifting

Usage#

HTML
JS
SASS

Properties#

PropertyAttributeDescriptionTypeDefault
Product IDproduct-idThe product id for which the gifting system is required.numberundefined
Widget Titlewidget-titleThe Widget's title valuestringundefined
Widget Subtitlewidget-subtitleThe Widget's subtitle valuestringundefined

Methods#

The pre-defined methods allow for calling functions built by Salla to carry out certain actvities, such as currencywidget-btn-content which is used to customize the widget's button content.
MethodDescriptionReturn Type
close()Hides / closes the gifting modal window.Promise<HTMLElement>
goToStep2()Go to the step 2 in the gifting system.Promise<void>
open()Shows / opens the gifting modal window.Promise<any>

Slots#

Theslots makes it customizable to modify certain labels, such as currencywidget-btn-content.
SlotDescription
currencywidget-btn-contentIt is used to customize the widget's button content.
Modified at 2025-03-04 12:54:02
Previous
Conditional Offer
Next
Installment