Swift-QA (beta)

Sale

Mongoose Tyax Comp Disc (T3)
Mongoose Tyax Comp Disc (T3)

Mongoose Tyax Comp Disc (T3)

€ 10.007,00 InStock
Performance Classic Sleeveless Jersey
Performance Classic Sleeveless Jersey

Performance Classic Sleeveless Jersey

€ 122,00 InStock
Terry Velocity Short Sleeve Jersey (MASTER)
Terry Velocity Short Sleeve Jersey (MASTER)

Terry Velocity Short Sleeve Jersey (MASTER)

€ 62,00 InStock
Scattante XRL Team Frame
Scattante XRL Team Frame

Scattante XRL Team Frame

€ 299,00 InStock
Crank Brothers Acid 2 Pedal xx
Crank Brothers Acid 2 Pedal xx

Crank Brothers Acid 2 Pedal xx

€ 239,99 InStock
Forté ATB Comp Pedal
Forté ATB Comp Pedal

Forté ATB Comp Pedal

€ 24,99 InStock
E-BIG TOUR 400EQ (PROPERTY)
E-BIG TOUR 400EQ   (PROPERTY)

E-BIG TOUR 400EQ (PROPERTY)

€ 4.285,00 OutOfStock
E-ONE SIXTY 8000 (RELATION)
E-ONE SIXTY 8000 (RELATION)

E-ONE SIXTY 8000 (RELATION)

€ 8.650,00 OutOfStock
E-ONE SIXTY 9000
E-ONE SIXTY 9000

E-ONE SIXTY 9000

€ 10.899,00 OutOfStock
Hæst & Æsel cap
Error executing template "Designs/Swift-v2/Paragraph/Swift-v2_ProductDefaultImage.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_97e4d42b5820405baa354138dac819a5.<>c__DisplayClass0_0.<ExecuteAsync>b__2(MediaViewModel x)
   at System.Collections.Generic.List`1.RemoveAll(Predicate`1 match)
   at CompiledRazorTemplates.Dynamic.RazorEngine_97e4d42b5820405baa354138dac819a5.ExecuteAsync()
   at RazorEngine.Templating.TemplateBase.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.DynamicWrapperService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass23_0.<Run>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template) in /_/src/Application/Providers/Dynamicweb.Rendering.Providers.NetCore/Razor/RazorTemplateRenderingProvider.cs:line 100
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template) in E:\A10-2\_work\3\s\src\Core\Dynamicweb.Core\Rendering\TemplateRenderingService.cs:line 21
   at Dynamicweb.Rendering.Template.RenderRazorTemplate() in E:\A10-2\_work\3\s\src\Core\Dynamicweb.Core\Rendering\Template.cs:line 747

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> @using Dynamicweb.Ecommerce.ProductCatalog @using Dynamicweb.Ecommerce.CustomerExperienceCenter.Favorites @{ ProductViewModel product = null; if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) { product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; } else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) { var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); if (productList?.Products is object) { product = productList.Products[0]; } } } @if (product is object) { string imagePath = product?.DefaultImage?.Value ?? ""; string imagePathUrlEncoded = Dynamicweb.Context.Current.Server.UrlEncode(imagePath); string ratio = Model.Item.GetRawValueString("ImageAspectRatio", ""); ratio = ratio != "0" ? ratio : ""; string ratioCssClass = ratio != "" ? " ratio" : ""; string ratioVariable = ratio != "" ? "--bs-aspect-ratio: " + ratio : ""; string width = Model.Item.GetRawValueString("Width", "auto"); int smallImageSize = 640; int largeImageSize = width == "auto" ? 1280 : Convert.ToInt32(width); string ImageObjectFit = Model.Item.GetRawValueString("ImageObjectFit", "contain"); string imagePathXs = "/Admin/Public/GetImage.ashx?width=" + smallImageSize + "&image=" + imagePathUrlEncoded + "&format=webp"; string imagePathS = "/Admin/Public/GetImage.ashx?width=" + largeImageSize + "&image=" + imagePathUrlEncoded + "&format=webp"; string imagePathFallBack = "/Admin/Public/GetImage.ashx?width=" + largeImageSize + "&image=" + imagePathUrlEncoded + "&format=webp"; bool showFavoritesSelector = !string.IsNullOrEmpty(Model.Item.GetString("ShowAddToFavorites")) ? Model.Item.GetBoolean("ShowAddToFavorites") : false; string anonymousUsersLimitations = Pageview.AreaSettings.GetRawValueString("AnonymousUsers", ""); bool anonymousUser = Pageview.User == null; var favoriteParameters = new Dictionary<string, object>(); if (!anonymousUser && showFavoritesSelector) { int defaultFavoriteListId = 0; IEnumerable<FavoriteList> favoreiteLists = Pageview.User.GetFavoriteLists(); if (favoreiteLists.Count() == 1) { foreach (FavoriteList list in favoreiteLists) { defaultFavoriteListId = list.ListId; } } favoriteParameters.Add("ListId", defaultFavoriteListId); } MediaViewModel alternativeImage = new MediaViewModel(); if (Model.Item.GetBoolean("ShowAlternativeImageOnHover")) { var selectedImageCategories = Model.Item.GetList("GetAlternativeImageFrom")?.GetRawValue().OfType<string>().ToList(); List<MediaViewModel> allAssetsImages = product.AssetCategories.Where(x => selectedImageCategories.Contains(x.SystemName)).SelectMany(x => x.Assets).ToList(); allAssetsImages.RemoveAll(x => x.Value == product.DefaultImage.Value); alternativeImage = allAssetsImages.FirstOrDefault(); } string altImagePathXs = string.Empty; string altImagePathS = string.Empty; if (!string.IsNullOrEmpty(alternativeImage?.Value)) { altImagePathXs = "/Admin/Public/GetImage.ashx?width=" + smallImageSize + "&image=" + Dynamicweb.Context.Current.Server.UrlEncode(alternativeImage.Value) + "&format=webp"; altImagePathS = "/Admin/Public/GetImage.ashx?width=" + largeImageSize + "&image=" + Dynamicweb.Context.Current.Server.UrlEncode(alternativeImage.Value) + "&format=webp"; } string colorSchemeBorder = !string.IsNullOrWhiteSpace(Model.ColorScheme?.Id) ? "border: 1px solid rgba(0,0,0,0)" : ""; string imageId = "ProductImage_" + product.Id + product.VariantId.Replace(".", "_"); string fullWidth = width == "auto" ? "w-100" : ""; string customWidth = width != "auto" ? "style=\"width: " + width + "px\"" : "style=\"min-width: 60px\""; if (!string.IsNullOrEmpty(imagePath)) { <figure class="h-100 @fullWidth position-relative item_@Model.Item.SystemName.ToLower()" @customWidth data-dw-colorscheme="@Model.ColorScheme?.Id"> <div class="ratio" style="@(ratioVariable)"> <div class="d-flex justify-content-center align-items-center"> @if (imagePath.StartsWith("/Files/", StringComparison.OrdinalIgnoreCase)) { <img id="@imageId" srcset=" @imagePathXs @(smallImageSize)w, @imagePathS @(largeImageSize)w" sizes="(max-width: 992px) 50vw, 25vw" src="@imagePathFallBack" @if (Model.Item.GetBoolean("ShowAlternativeImageOnHover") && !string.IsNullOrEmpty(alternativeImage?.Value)) { <text> data-alternative-image=" @altImagePathXs @(smallImageSize)w, @altImagePathS @(largeImageSize)w" onmouseover="swift.Image.swapImage(event)" onmouseout="swift.Image.swapImage(event)" </text> } loading="lazy" decoding="async" class="h-100 w-100" style="object-fit: @ImageObjectFit; @colorSchemeBorder" alt="@product.Name" itemprop="image"> } else { <img id="@imageId" src="/Files/@product.DefaultImage.Value" loading="lazy" class="h-100 w-100" style="object-fit: contain; @colorSchemeBorder" alt="@product.Name" itemprop="image"> } </div> </div> @if (!anonymousUser) { if (showFavoritesSelector) { <div class="position-absolute top-0 end-0 my-3" style="z-index: 2"> @RenderPartial("Components/ToggleFavorite.cshtml", product, favoriteParameters) </div> } } </figure> } } else if (Pageview.IsVisualEditorMode) { <div class="alert alert-dark m-0">@Translate("The default image will be shown here, if any")</div> }

Hæst & Æsel cap

€ 0,00 OutOfStock
10 out of 10 products

Sale

Shop our exclusive sale offers, featuring discounted bikes, accessories, and clothing. Don’t miss out on great deals for top-quality cycling gear.

By clicking 'Accept All' you consent that we may collect information about you for various purposes, including: Statistics and Marketing