Optional mock function to use. If not provided, a simple implementation is used.
Add a product to the cart.
The product identifier.
OptionalslotIdOrElement: SlotReferenceThe slot ID or element to use for the product.
Optionalquantity: numberThe quantity of the product to add.
The mock function that was assigned to window.Nosto.addSkuToCart.
Add a product to the cart.
The product identifier.
OptionalslotIdOrElement: SlotReferenceThe slot ID or element to use for the product.
Optionalquantity: numberThe quantity of the product to add.
Registers a mock function and assigns it to window.Nosto.addSkuToCart.