removeEcommerceItem
Deprecated
This method is no longer recommended. Use the ecommerceRemoveFromCart() method instead.
The removeEcommerceItem() method removes a product added to the cart.
Syntax
removeEcommerceItem(productSKU)
removeEcommerceItem(productSKU): void
removeEcommerceItem(productSKU): void
removeEcommerceItem(productSKU): void
removeEcommerceItem(productSKU): void
removeEcommerceItem(productSKU): void
removeEcommerceItem(productSKU): void
Parameters
productSKU (string, required)
The stock-keeping unit of the product to be removed.
Examples
_paq.push(["removeEcommerceItem", "584340"]);
removeEcommerceItem(584340): void
removeEcommerceItem(584340): void
removeEcommerceItem(584340): void
removeEcommerceItem(584340): void
removeEcommerceItem(584340): void
removeEcommerceItem(584340): void
Notes
- The cart with added items is not stored in local storage. Make sure to add all items again after the page reloads.
- This method doesn't send any data to Piwik PRO. It just updates the cart in memory. You can use the trackEcommerceCartUpdate() or trackEcommerceOrder() method to send cart data to Piwik PRO.
Related methods
- addEcommerceItem() (deprecated)
- clearEcommerceCart() (deprecated)
- getEcommerceItems() (deprecated)
- setEcommerceView() (deprecated)
- trackEcommerceCartUpdate() (deprecated)
- trackEcommerceOrder() (deprecated)
Updated 6 days ago