public ActionResult AddBundleToCart() { AddToCartRenderingModel addToCartModel = AddToCartRepository.GetAddToCartModel(); addToCartModel.CatalogName = StorefrontContext.CurrentStorefront.Catalog; return(View("~/Views/ProductBundle/AddBundleToCart.cshtml", _productBundleRepository.GetProductBundleRenderingModel(_visitorContext))); }
public ActionResult AddToDemoCart() { AddToCartRenderingModel addToCartModel = AddToCartRepository.GetAddToCartModel(); // CatalogName appears to always be empty when the model is returned from the repository // overriding with the current storefront catalog from context addToCartModel.CatalogName = this.StorefrontContext.CurrentStorefront.Catalog; return(base.View("~/Views/Commerce/Cart/AddToCart.cshtml", addToCartModel)); }