Unicorn fit banjo
Avanceret cykler
designet til hvad som helst
Få en sjov tur eller god tid på vejen
Hoodie selfies 8-bit, echo park lomo sartorial ugh tonx tilde 3 wolf moon snackwave twee listicle. Semiotics irony chillwave tbh, la croix taxidermy blog.
EN NY BEGYNDELSE
Vi startede som små
Viral mustache cardigan venmo whatever. Semiotics organic leggings, kitsch scenester hot chicken hell of keytar swag cloud bread fanny pack. Chambray artisan wayfarers pour-over. Ascot waistcoat you probably haven't heard of them la croix
SÆLG I DAG
Og så voksede vi lidt
Viral mustache cardigan venmo whatever. Semiotics organic leggings, kitsch scenester hot chicken hell of keytar swag cloud bread fanny pack. Chambray artisan wayfarers pour-over. Ascot waistcoat you probably haven't heard of them palo santo.
Tag en genvej til dine favoritter
Du kan være interesseret i en af disse
Error executing template "Designs/Swift/Paragraph/Swift_Image.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at CompiledRazorTemplates.Dynamic.RazorEngine_cce82704b90f4fa7aa3d41010cee9270.Execute() in H:\Solutions\Hamonoya\Files\Templates\Designs\Swift\Paragraph\Swift_Image.cshtml:line 67 at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader) at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag) at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template) at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.ProductCatalog 3 4 @{ 5 string ratio = Model.Item.GetRawValueString("ImageAspectRatio") != string.Empty ? Model.Item.GetRawValueString("ImageAspectRatio") : string.Empty; 6 string ratioCssClass = ratio != "0" && ratio != "fill" ? " ratio" : string.Empty; 7 string ratioVariable = ratio != "0" && ratio != "fill" ? "style=\"--bs-aspect-ratio: " + ratio + "\"" : string.Empty; 8 string fillClass = ratio == "fill" ? " h-100" : string.Empty; 9 10 var parms = new Dictionary<string, object>(); 11 parms.Add("loading", "lazy"); 12 parms.Add("columns", Model.GridRowColumnCount); 13 parms.Add("style", ""); 14 parms.Add("alt", Model.Item.GetString("ImageAltText")); 15 16 if (ratio == "fill") 17 { 18 parms.Add("cssClass", "w-100 h-100"); 19 } 20 if (ratio == "0") 21 { 22 parms.Add("fullwidth", true); 23 parms.Add("cssClass", "img-fluid"); 24 } 25 26 string linkType = Model.Item.GetRawValueString("LinkType", "page") != string.Empty ? Model.Item.GetRawValueString("LinkType", "page") : string.Empty; 27 Dynamicweb.Frontend.LinkViewModel link = new Dynamicweb.Frontend.LinkViewModel(); 28 29 if (linkType == "page" && Model.Item.GetLink("ButtonLink") != null) 30 { 31 link = Model.Item.GetLink("ButtonLink"); 32 } 33 34 if (linkType == "product-group") 35 { 36 IList<ProductGroupViewModel> selectedGroups = Model.Item.GetValue<IList<ProductGroupViewModel>>("ProductGroupLink"); 37 IList<string> groupIds = new List<string> { }; 38 39 if (selectedGroups != null) 40 { 41 foreach (var fromGroup in selectedGroups) 42 { 43 groupIds.Add(fromGroup.Id); 44 } 45 } 46 47 link = new Dynamicweb.Frontend.LinkViewModel() 48 { 49 Url = "/Default.aspx?ID=" + GetPageIdByNavigationTag("Shop") + "&GroupID=" + string.Join(",", groupIds) 50 }; 51 } 52 53 if (linkType == "product") 54 { 55 ProductListViewModel products = Model.Item.GetValue<ProductListViewModel>("ProductLink"); 56 IList<string> productIds = new List<string> { }; 57 58 if (products != null) 59 { 60 foreach (var product in products.Products) 61 { 62 productIds.Add(product.Id); 63 } 64 } 65 66 string productParameter = productIds.Count == 1 ? "ProductID" : "MainProductId"; 67 string productLink = products.Products.FirstOrDefault().GetProductLink(GetPageIdByNavigationTag("Shop"), false); 68 productLink = productIds.Count != 1 ? "/Default.aspx?ID=" + GetPageIdByNavigationTag("Shop") + "&" + productParameter + "=" + string.Join(",", productIds).Trim() : productLink; 69 70 link = new Dynamicweb.Frontend.LinkViewModel() 71 { 72 Url = productLink 73 }; 74 } 75 } 76 77 @if (!string.IsNullOrEmpty(Model.Item.GetString("Image"))) 78 { 79 if (link != null && !string.IsNullOrEmpty(link.Url)) 80 { 81 string target = Pageview.AreaSettings.GetBoolean("OpenLinksInNewTab") && link.IsExternal ? "target=\"_blank\"" : ""; 82 string rel = Pageview.AreaSettings.GetBoolean("OpenLinksInNewTab") && link.IsExternal ? "rel=\"noopener\"" : ""; 83 84 <a href="@link.Url" @target @rel> 85 <figure class="m-0@(ratioCssClass)@(fillClass) item_@Model.Item.SystemName.ToLower()" @ratioVariable> 86 @RenderPartial("Components/Image.cshtml", Model.Item.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel(), parms) 87 </figure> 88 </a> 89 } 90 else 91 { 92 <figure class="m-0@(ratioCssClass)@(fillClass) item_@Model.Item.SystemName.ToLower()" @ratioVariable> 93 @RenderPartial("Components/Image.cshtml", Model.Item.GetFile("Image") ?? new Dynamicweb.Frontend.FileViewModel(), parms) 94 </figure> 95 } 96 } 97
Levering næste dag
Eller hente produktet samme dag
Gratis levering
Få penegen retur inden for 30 dage
Sikker handel
Dedikeret support