Skip to content

Scope "wishlists" events

Blade will send some small payloads to the bus whenever a frontend User will be able to "add" or "remove" items from his/her Wishlists.

onWishlistAdd

Fired whenever a "item" (or a "product") will successfully added to a Wishlist.

Let's review an example:

js
{
  "product_id": "17969",
  "product_sku": "GU.W0647L6",
  "product_name": "OROLOGIO GUESS CHELSEA - GU.W0647L6",
  "wishlist_name": "Regali Genitori"
}

Variables full details

Here you can find a detailed description of each variable or sub-branch:

VarTypeDescription
product_idstring/intUnique product id
product_skustringUnique product SKU
product_namestringContextual product name
wishlist_namestringCustomer's wishlist name

onWishlistRemove

Fired whenever a "item" (or a "product") will successfully deleted from a Wishlist.

Let's review an example:

js
{
  "product_id": "17969",
  "product_sku": "GU.W0647L6",
  "product_name": "OROLOGIO GUESS CHELSEA - GU.W0647L6",
  "wishlist_name": "Regali Genitori"
}

Variables full details

Here you can find a detailed description of each variable or sub-branch:

VarTypeDescription
product_idstring/intUnique product id
product_skustringUnique product SKU
product_namestringContextual product name
wishlist_namestringCustomer's wishlist name

Released under the MIT License.