public string RenderToString(MerchantTribe.Commerce.Catalog.Product p, MerchantTribeApplication app) { StringBuilder sb = new StringBuilder(); Render(sb, p, app); return(sb.ToString()); }
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); }
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); }