예제 #1
0
        private void LogProductViewActivity(ProductPageViewModel model)
        {
            PersonalizationServices.RecordProductViews(model.LocalProduct.Bvin, HccApp);

            if (!IsConcreteItemModule)
            {
                HccApp.AnalyticsService.RegisterEvent(HccApp.CurrentCustomerId, ActionTypes.ProductViewed,
                                                      model.LocalProduct.Bvin);
            }
        }
예제 #2
0
        //GET: /{*slug}
        public ActionResult Index(string slug)
        {
            // Basic Setup
            ProductPageViewModel model = IndexSetup(slug);

            // Load an line item specific values
            LoadLineItemValues(model);

            // Render Options
            model.PreRenderedOptions = HtmlRendering.ProductOptions(model.LocalProduct.Options, model.Selections);

            // Record and Return view
            PersonalizationServices.RecordProductViews(model.LocalProduct.Bvin, MTApp);
            return(View(model));
        }