Exemple #1
0
        public string RenderToString(MerchantTribe.Commerce.Catalog.Product p, MerchantTribeApplication app)
        {
            StringBuilder sb = new StringBuilder();

            Render(sb, p, app);
            return(sb.ToString());
        }
Exemple #2
0
        private bool IsProductUrl(string fullSlug, MerchantTribe.Commerce.MerchantTribeApplication app)
        {
            // See if we have a matching Product URL
            MerchantTribe.Commerce.Catalog.Product p = app.CatalogServices.Products.FindBySlug(fullSlug);
            if (p != null)
            {
                if (p.Bvin != string.Empty)
                {
                    return(true);
                }
            }

            return(false);
        }
Exemple #3
0
        public void Render(StringBuilder sb, MerchantTribe.Commerce.Catalog.Product p, MerchantTribeApplication app)
        {
            if (p == null)
            {
                return;
            }
            if (p.Bvin == string.Empty)
            {
                return;
            }
            var model = new SingleProductViewModel(p, app);

            RenderModel(sb, model, app);
        }