/// <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));
        }
Exemplo n.º 3
0
        public ActionResult RecentlyViewed()
        {
            var boxes = this.CustomerContext.GetRecentlyViewedProducts();

            return(this.PartialView(PathHelper.GetThemePartialViewPath(BazaarContentHelper.GetStoreTheme(), "RecentlyViewed"), boxes));
        }
Exemplo n.º 4
0
 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));
 }
Exemplo n.º 6
0
        public ActionResult RenderAddItem(AddItemModel model)
        {
            var theme = BazaarContentHelper.GetStoreTheme();

            return(this.PartialView(PathHelper.GetThemePartialViewPath(theme, "AddToCart"), model));
        }