Skip to content

Send multiple products

You can preview this in action by navigating to the "Create Product" page and clicking the "Send Product" button. Note: You must modify CreateProductPage (below) in order to see this working. These changes are incorporated as part of #8.

@@ -32,9 +32,11 @@ CreateProductPage.prototype._onSendProductClick = function () {
   var products = this._event.properties.products;

   this._sendProductView = SendProductView({
-    product: Product(products.origin[0])
+    products: [Product(products.origin[0]), Product(products.origin[0])]
   });
   this._sendProductView.on('cancel', this.onRemove, this);
+
+  this._sendProductView.show();
 };

 CreateProductPage.prototype.onRemove = function () {

Merge request reports

Loading