/// <summary> /// The index. /// </summary> /// <param name="model"> /// The model. /// </param> /// <returns> /// The <see cref="ActionResult"/>. /// </returns> public override ActionResult Index(RenderModel model) { var theme = BazaarContentHelper.GetStoreTheme(); ((IProductContent)model.Content).SpecifyCulture(UmbracoContext.PublishedContentRequest.Culture); return(this.View(PathHelper.GetThemeViewPath(theme, "ProductContent"), model.Content)); }
/// <summary> /// The index. /// </summary> /// <param name="model"> /// The model. /// </param> /// <returns> /// The <see cref="ActionResult"/>. /// </returns> public override ActionResult Index(RenderModel model) { var theme = BazaarContentHelper.GetStoreTheme(); // Get the product as IProductContent var product = model.Content as IProductContent; // Specify Culture product.SpecifyCulture(UmbracoContext.PublishedContentRequest.Culture); // Add a recently viewed key this.CustomerContext.AddRecentKey(product); return(this.View(PathHelper.GetThemeViewPath(theme, "ProductContent"), model.Content)); }
public ActionResult RecentlyViewed() { var boxes = this.CustomerContext.GetRecentlyViewedProducts(); return(this.PartialView(PathHelper.GetThemePartialViewPath(BazaarContentHelper.GetStoreTheme(), "RecentlyViewed"), boxes)); }
public ActionResult RenderPayPalSetupJs() { return(this.PartialView(PathHelper.GetThemePartialViewPath(BazaarContentHelper.GetStoreTheme(), "BraintreePayPalSetupJs"), this.GetToken())); }
public override ActionResult RenderForm(CheckoutConfirmationForm model) { return(this.PartialView(PathHelper.GetThemePartialViewPath(BazaarContentHelper.GetStoreTheme(), "BraintreePayPalOneTime"), model)); }
public ActionResult RenderAddItem(AddItemModel model) { var theme = BazaarContentHelper.GetStoreTheme(); return(this.PartialView(PathHelper.GetThemePartialViewPath(theme, "AddToCart"), model)); }