Fnugfilter
Passer til disse modeller: (finder du ikke din, så kontakt os venligst).
Gorenje
D1112 - 117863
D1112 - 126917
D1212 - 117864
D1212 - 126918
D1312 - 197598
D2122 - 169019
D2122 - 238799
D2123 - 238800
D2225 - 117865
D2226 - 238799
D2325 - 238800
D4225 - 117866
D48565N - 478616
D50210 - 161371
D50210 - 166261
D50210 - 167944
D50210 - 170701
D50210 - 175551
D50310 - 196505
D50310 - 197272
D50310 - 197801
D52220 - 169205
D52320 - 197595
D52320 - 240851
D5238 - 147845
D58565N - 497061
D60.25 - 187852
D60.35 - 197422
D60.9 - 308368
D61110 - 199690
D61110 - 321231
D61112 - 101869
D61112 - 102904
D61112 - 104761
D61112 - 110019
D61112 - 118105
D61112 - 123168
D61112 - 124025
D61112 - 146535
D61112 - 705019
D61112 - 705050
D61212 - 101870
D61212 - 102905
D61212 - 110015
D61212 - 118107
D61212 - 123169
D61212 - 146536
D61212 - 147640
D61212 - 157698
D61212 - 176430
D61212 - 705020
D61212 - 705051
D61310 - 274328
D61312 - 195138
D61312 - 197270
D61312 - 197802
D620 - 198319
D62122 - 101871
D62122 - 118109
D62122 - 158511
D62122 - 335334
D62122 - 705021
D62122 - 705052
D62225 - 101872
D62225 - 102906
D62225 - 104760
D62225 - 118130
D62225 - 147641
D62225 - 150933
D62225 - 151280
D62225 - 705022
D62225 - 705053
D622CM - 345983
D622CM - 350818
D622CM - 378351
D622CM - 411559
D62320 - 268933
D62320 - 286334
D62320 - 297476
D62321 - 314305
D62325 - 195150
D62325 - 197592
D62325 - 197920
D62325 - 197921
D62325 - 198025
D62326 - 309510
D624B - 390185
D624B - 411853
D624BL - 345984
D624BL - 350817
D63122 - 101873
D63122 - 102907
D63122 - 110017
D63122 - 169968
D63122 - 705054
D63225 - 101874
D63225 - 102908
D63225 - 110018
D63225 - 118131
D63225 - 135845
D63225 - 138029
D63225 - 150934
D63225 - 151271
D63225 - 705023
D63225 - 705055
D63226 - 164344
D63325 - 195152
D63325 - 197271
D63325 - 197591
D63325 - 197899
D64122 - 705024
D64122 - 705056
D64225 - 101875
D64225 - 118133
D64225 - 118650
D64225 - 123200
D64225 - 705025
D64225 - 705057
D64225AL - 102909
D64225AL - 118661
D64325 - 195136
D64325 - 197593
D64325 - 197973
D65225 - 126168
D65225 - 126171
D65225 - 151297
D65225 - 154236
D65225AL - 126167
D65225AL - 126170
D65225AL - 154238
D65238 - 126169
D65238 - 126172
D65238 - 154237
D65325 - 194654
D65325AL - 194652
D65338 - 194653
D6SYA - 297133
D6SYB - 278178
D6SYW - 278179
D6SYW - 327240
D70.35 - 281909
D70.36 - 309509
D71110 - 187681
D71110 - 283905
D71112 - 173882
D71112 - 178119
D71112 - 182237
D71112 - 188240
D71112 - 300942
D71210 - 187660
D71212 - 123169
D71212 - 173886
D71212 - 182236
D71310 - 198115
D71310 - 283906
D71310 - 376056
D71312 - 196504
D71312 - 222881
D71312 - 262163
D71W - 392605
D71W - 409266
D72122 - 187683
D72225 - 173898
D72225 - 177387
D72225 - 178117
D72225 - 185617
D72225 - 187684
D722CM - 408455
D722CM - 418967
D722CM - 445275
D722CM - 576314
D72320 - 276847
D72320 - 297475
D72320 - 343259
D72325 - 196201
D72325 - 196506
D72325 - 197273
D72325 - 197594
D72325 - 198114
D72325 - 232107
D72325AL - 253328
D72325AL - 287321
D72325AL - 355039
D72325BK - 196441
D72325BK - 199770
D72325BK - 233770
D72325BK - 263266
D72326 - 281617
D72326 - 309508
D72326AL - 297473
D72326BK - 297479
D72326BK - 309506
D72326BK - 329528
D72326RD - 295237
D72326RD - 303538
D72326RD - 309511
D72326RD - 329529
D724BL - 345985
D724BL - 350816
D724BL - 378350
D724BL - 411560
D724BL - 418968
D73122 - 171218
D73225 - 171217
D73225 - 171505
D73225 - 187686
D73325 - 194633
D73325 - 194651
D73325 - 198004
D73325 - 300943
D740B - 409606
D74122 - 152270
D74225 - 152259
D74225 - 152271
D74225 - 187687
D74225AL - 152261
D74225AL - 152272
D74325 - 194658
D74325 - 194661
D74325 - 197976
D74325AL - 194657
D74325AL - 194659
D74325AL - 284638
D744B - 390186
D744BJ - 346604
D744BJ - 350831
D744BJ - 378348
D744BJ - 398405
D744BJ - 406648
D744BJ - 415087
D744BJ - 422900
D744BJ - 463006
D744BJ - 565930
D744J - 515168
D7462 - 524072
D7462J - 346524
D7462J - 349887
D7462J - 412681
D7464J - 382522
D7465 - 441332
D7465A++ - 441332
D7465J - 415085
D7465NA - 405731
D7465NB - 405094
D7465NR - 405093
D74SY2B - 431121
D74SY2W - 431122
D74SY2W - 508240
D75225 - 152314
D75225AL - 152316
D75238 - 152315
D75325 - 194656
D75325AL - 194622
D75325AL - 284637
D75338 - 194655
D754BJ - 391365
D754BJ - 445276
D754BJA - 496800
D754BJB - 496799
D754BJO - 449498
D754BJR - 412642
D754BJR - 496798
D7560 - 412061
D7560A - 412061
D7560A+ - 412061
D7562J - 391363
D7564 - 445495
D7564JR - 405647
D7565J - 434105
D7565L - 508766
D7565NA - 406646
D7565NA - 469770
D7565NB - 407805
D7565NO - 438627
D7565NO - 444179
D7565NR - 405647
D764BJ - 388461
D7664N - 342123
D7664N - 347373
D7664N - 353653
D7664N - 412685
D7665N - 404119
D7665N - 406332
D76SY2B - 431037
D76SY2B - 471350
D76SY2W - 431038
D76SY2W - 471371
D76SYW - 347112
D7764N - 386165
D79864J - 398356
D7B - 532255
D7ECO - 515689
D7SYB - 406265
D7SYW - 335281
D8200 - 301503
D82325 - 293011
D82325 - 296365
D82325 - 310961
D82325 - 335335
D82325 - 355036
D82325BK - 296366
D82326 - 290936
D82326 - 305843
D82326 - 314270
D82326 - 337188
D82426 - 290948
D82426 - 293006
D82426 - 293010
D82426 - 296367
D82426 - 308369
D82426 - 335336
D82426 - 335337
D82426 - 335338
D82426 - 339067
D82426BK - 293008
D8426ECO - 300763
D844BH - 346523
D844BH - 418048
D844BH - 418975
D844BH - 463008
D844BJ - 378349
D844BJ - 483472
D844BJ - 729310
D8450N - 438628
D845B - 494111
D8464G - 346526
D8464G - 415085
D8464GB - 386168
D8464N - 392548
D8465N - 419727
D8539EX - 518073
D854BJ - 476170
D8560 - 476952
D8560A++ - 476952
D8564G - 411561
D8565N - 406642
D8565N - 476169
D8565NA - 454599
D8565NA - 459136
D8565NA - 494426
D8565NA - 506533
D8565NA - 576313
D8565NB - 454596
D8565NB - 459137
D8565NB - 494429
D8565NO - 454600
D8565NO - 459135
D8565NO - 494427
D8565NR - 454597
D8565NR - 459138
D8565NR - 494430
D8566 - 515239
D8566A+++ - 515239
D85F4BL - 728301
D864BH - 388512
D864BH - 476193
D8664N - 347377
D8664N - 398136
D8665N - 412683
D8665N - 415086
D8666N - 439905
D8666N - 440350
D8764N - 386171
D8790EU - 518072
D88464 - 388326
D88464N - 435467
D884BH - 445217
D88565N - 478006
D8B - 469057
D8ECO - 453472
D9565N - 499469
D9565N - 508586
D9565N - 513647
D9565NUK - 517214
D9664E - 347376
D9664E - 392551
D9664N - 391366
D9665E - 415235
D9665N - 461391
D9765 - 411038
D9864E - 347375
D9864E - 408762
D9864E - 445216
D9866E - 440381
D9866EUK - 517213
DDE7002HWW - 138047
DDE7006HWW - 156001
DDE7009HWW - 146826
DDE700HWW - 177421
DDE700HWW1 - 177421
DDE8102HWW - 138048
DDE810HWW - 177422
DDE810HWW1 - 177422
T421C - 477563
T431HP - 477567
T7101 - 414508
T7149ECO - 346773
T72BL - 414483
T746J - 411073
T756J - 497767
T766N - 411234
T7700 - 297478
T7700 -T7700 - 297478
T7700 -T7700 - 297478
T7710D - 297472
T7710D -SPK2 - 297472
T7710D -SPK2 - 297472
T7720D - 297477
T7720D -T7720D - 297477
T7720D -T7720D - 297477
T8111 - 414207
T81112HP - 497837
TED1N17 - 173067
TKS6100 - 162741
VD7E/W - 436980
VDEVD712W - 436877
WA62C - 146813
WD71112 - 182822
WDR-1700J(AV) - 301223
WDR-2700J(CN) - 301224
WT641 - 194317
WT641 - 197597
WT7110L - 388535
WT7120S - 388536
WT7122S - 388536
WT7212L - 544293
WT741 - 256521
WT749 - 295110
WT8120SL - 388534
WT8122SL - 388534
WT8212S - 544297
WTA6200N - 123738
WTE74 - 382522
WTE85 - 497768
WTK 6100 N - 250052
WTK 7200 SL - 250053
WTK 7300 SLS - 250054
WTK6100N - 250052
WTK6120L - 132201
WTK6220N - 123739
WTK6300S - 123790
WTK7300SLS - 250054
Error executing template "Designs/Swift/Paragraph/Swift_RelatedProducts.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at Dynamicweb.Ecommerce.ProductCatalog.ViewEngine.<>c__DisplayClass6_0.<GetRelatedGroups>b__1(IGrouping`2 group) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at CompiledRazorTemplates.Dynamic.RazorEngine_383b880393bb43209ef4ffa93060d869.Execute() in D:\dynamicweb.net\Solutions\smartpage\vmelektro.cloud.dynamicweb-cms.com\Files\Templates\Designs\Swift\Paragraph\Swift_RelatedProducts.cshtml:line 173 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.Core 3 @using Dynamicweb.Ecommerce.ProductCatalog 4 5 @{ 6 bool productViewModelFound = false; 7 ProductViewModel product = new ProductViewModel(); 8 9 ProductViewModelSettings productSetting = new ProductViewModelSettings 10 { 11 LanguageId = Dynamicweb.Ecommerce.Common.Context.LanguageID, 12 CurrencyCode = Dynamicweb.Ecommerce.Common.Context.Currency.Code, 13 CountryCode = Dynamicweb.Ecommerce.Common.Context.Country.Code2, 14 ShopId = Pageview.Area.EcomShopId 15 }; 16 17 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 18 { 19 productViewModelFound = true; 20 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 21 } 22 if (Pageview.IsVisualEditorMode && !productViewModelFound) 23 { 24 if (Pageview.Item["DummyProduct"] != null) 25 { 26 productViewModelFound = true; 27 string dummyProductId = ""; 28 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 29 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 30 if (productList.Products != null) 31 { 32 foreach (var p in productList.Products) { dummyProductId = p.Id; } 33 ProductViewModel dummyProduct = dummyProductId != "" ? ViewModelFactory.CreateView(productSetting, dummyProductId) : new ProductViewModel(); 34 product = dummyProduct; 35 } 36 else 37 { 38 product = ViewModelFactory.CreateView(productSetting, Dynamicweb.Ecommerce.Services.Products.GetLastActiveProducts(1, Dynamicweb.Ecommerce.Common.Context.LanguageID, false).FirstOrDefault().Id); 39 } 40 } 41 else if (Pageview.Item["DummyProduct"] == null) 42 { 43 productViewModelFound = true; 44 product = ViewModelFactory.CreateView(productSetting, Dynamicweb.Ecommerce.Services.Products.GetLastActiveProducts(1, Dynamicweb.Ecommerce.Common.Context.LanguageID, false).FirstOrDefault().Id); 45 } 46 } 47 48 string title = Model?.Item?.GetString("Title") != null ? Model.Item.GetString("Title") : Translate("Products"); 49 50 string campaignValues = Model.Item.GetRawValueString("CampaignBadges", string.Empty); 51 52 //Styling 53 string titleFontSize = Model.Item.GetRawValueString("TitleFontSize", "h3"); 54 string subtitleFontSize = Model.Item.GetRawValueString("SubtitleFontSize", "fs-5"); 55 string buttonStyle = Model.Item.GetRawValueString("ButtonStyle", ""); 56 buttonStyle = buttonStyle == "primary" ? " btn-primary" : buttonStyle; 57 buttonStyle = buttonStyle == "secondary" ? " btn-secondary" : buttonStyle; 58 buttonStyle = buttonStyle == "link" ? " btn-link" : buttonStyle; 59 string maxWidth = Model.Item.GetRawValueString("TextReadability", ""); 60 maxWidth = maxWidth == "max-width-on" ? " mw-75ch" : maxWidth; 61 maxWidth = maxWidth == "max-width-off" ? "" : maxWidth; 62 63 string generalTheme = !string.IsNullOrWhiteSpace(Model.Item.GetRawValueString("GeneralTheme")) ? " theme " + Model.Item.GetRawValueString("GeneralTheme").Replace(" ", "").Trim().ToLower() : ""; 64 string theme = !string.IsNullOrWhiteSpace(Model.Item.GetRawValueString("Theme")) ? " theme " + Model.Item.GetRawValueString("Theme").Replace(" ", "").Trim().ToLower() : ""; 65 string imageTheme = !string.IsNullOrWhiteSpace(Model.Item.GetRawValueString("ImageTheme")) ? " theme " + Model.Item.GetRawValueString("ImageTheme").Replace(" ", "").Trim().ToLower() : ""; 66 67 //Link generation 68 string pageId = Model.Item.GetLink("ProductSliderServicePage") != null ? Model.Item.GetLink("ProductSliderServicePage").PageId.ToString() : ""; 69 string servicePageByNavigationTag = GetPageIdByNavigationTag("ProductSliderService") != 0 ? GetPageIdByNavigationTag("ProductSliderService").ToString() : ""; 70 pageId = pageId == "" ? servicePageByNavigationTag : pageId; 71 72 string url = "/Default.aspx?ID=" + pageId; 73 if (!url.Contains("LayoutTemplate")) 74 { 75 url += url.Contains("?") ? "&LayoutTemplate=Designs/Swift/Swift_PageClean.cshtml" : "?LayoutTemplate=Designs/Swift/Swift_PageClean.cshtml"; 76 } 77 if (Pageview.IsVisualEditorMode) 78 { 79 url += "&VisualEdit=True"; 80 } 81 82 bool isLazyLoadingForProductInfoEnabled = Dynamicweb.Ecommerce.DynamicwebLiveIntegration.TemplatesHelper.IsLazyLoadingForProductInfoEnabled; 83 if (isLazyLoadingForProductInfoEnabled) 84 { 85 url += "&getproductinfo=true"; 86 } 87 88 //Source type 89 string sourceType = Model.Item.GetRawValueString("RelationType", "trending"); 90 IList<string> relateFromGroupIds = new List<string> { }; 91 IList<string> relateFromProductIds = new List<string> { }; 92 93 //--- VARIANTS --- 94 ProductListViewModel productsToRelateToVariants = Model.Item.GetValue<ProductListViewModel>("ProductsToRelateToVariants"); 95 if (productsToRelateToVariants != null && sourceType == "variants") 96 { 97 foreach (var productSelection in productsToRelateToVariants.Products) 98 { 99 relateFromProductIds.Add(productSelection.Id); 100 } 101 } 102 103 //--- MOST SOLD --- 104 IList<ProductGroupViewModel> groupsToRelateToMostSold = Model.Item.GetValue<IList<ProductGroupViewModel>>("GroupsToRelateToMostSold"); 105 if (groupsToRelateToMostSold != null && sourceType == "most-sold") 106 { 107 foreach (var fromGroup in groupsToRelateToMostSold) 108 { 109 relateFromGroupIds.Add(fromGroup.Id); 110 } 111 } 112 113 //--- TRENDING --- 114 IList<ProductGroupViewModel> groupsToRelateToTrending = Model.Item.GetValue<IList<ProductGroupViewModel>>("GroupsToRelateToTrending"); 115 if (groupsToRelateToTrending != null && sourceType == "trending") 116 { 117 foreach (var fromGroup in groupsToRelateToTrending) 118 { 119 relateFromGroupIds.Add(fromGroup.Id); 120 } 121 } 122 123 //--- LATEST --- 124 IList<ProductGroupViewModel> groupsToRelateToLatest = Model.Item.GetValue<IList<ProductGroupViewModel>>("GroupsToRelateToLatest"); 125 if (groupsToRelateToLatest != null && sourceType == "latest") 126 { 127 foreach (var fromGroup in groupsToRelateToLatest) 128 { 129 relateFromGroupIds.Add(fromGroup.Id); 130 } 131 } 132 133 //--- FREQUENTLY BOUGHT --- 134 ProductListViewModel productsToRelateTo = Model.Item.GetValue<ProductListViewModel>("ProductsToRelateTo"); 135 if (productsToRelateTo != null && sourceType == "frequently") 136 { 137 foreach (var fromProduct in productsToRelateTo.Products) 138 { 139 relateFromProductIds.Add(fromProduct.Id); 140 } 141 } 142 143 //--- SELECTED PRODUCTS --- 144 ProductListViewModel products = Model.Item.GetValue<ProductListViewModel>("Products"); 145 if (products != null && sourceType == "selected") 146 { 147 foreach (var productSelection in products.Products) 148 { 149 relateFromProductIds.Add(productSelection.Id); 150 } 151 } 152 153 //--- RELATED PRODUCTS --- 154 if (sourceType == "related-products") 155 { 156 ProductListViewModel selectedRelationProduct = Model.Item.GetValue<ProductListViewModel>("ProductsToRelateTo2"); 157 if (selectedRelationProduct?.Products != null) 158 { 159 if (selectedRelationProduct.Products.Count > 0) 160 { 161 int productCount = 0; 162 foreach (var selectedProduct in selectedRelationProduct.Products) 163 { 164 if (productCount == 0) 165 { 166 product = selectedProduct; 167 productCount++; 168 } 169 } 170 } 171 } 172 173 if (product?.RelatedGroups != null) 174 { 175 foreach (var group in product.RelatedGroups) 176 { 177 foreach (var relatedProduct in group.Products) 178 { 179 relateFromProductIds.Add(relatedProduct.ProductId); 180 } 181 } 182 } 183 } 184 185 //Create group id collection and products id collection strings 186 string groupIds = productViewModelFound ? product.PrimaryOrDefaultGroup.Id : string.Join(",", relateFromGroupIds); 187 string productIds = productViewModelFound && relateFromProductIds.Count == 0 ? product.Id : string.Join(",", relateFromProductIds); 188 189 //Set the parameters to the url 190 string linkParameters = ""; 191 linkParameters += sourceType != "related-products" ? "&GroupId=" + groupIds : ""; 192 linkParameters += !string.IsNullOrEmpty(productIds) ? "&MainProductId=" + productIds : ""; 193 var productListPageId = GetPageIdByNavigationTag("Shop"); 194 string link = "/Default.aspx?ID=" + productListPageId + linkParameters; 195 196 // Slider settings (documentation: swiffyslider.com/configuration) 197 string navigationStyle = $"{Model.Item.GetRawValueString("NavigationStyle", "slider-nav-round")}"; 198 string navigationPlacement = $"{Model.Item.GetRawValueString("NavigationPlacement", "slider-nav-on-slides")}"; 199 string indicatorStyle = $"{Model.Item.GetRawValueString("IndicatorStyle", "slider-indicators-hidden")}"; 200 string revealSlides = Model.Item.GetRawValueString("RevealSlides", "no-reveal") == "reveal" ? "slider-item-reveal" : string.Empty; 201 string navigationAlwaysVisible = (Model.Item.GetBoolean("NavigationAlwaysVisible")) ? "slider-nav-visible" : string.Empty; 202 string navigationVisibleOnTouch = (Model.Item.GetBoolean("NavigationVisibleOnTouch")) ? "slider-nav-touch" : string.Empty; 203 string navigationShowScrollbar = (Model.Item.GetBoolean("NavigationShowScrollbar")) ? "slider-nav-scrollbar" : string.Empty; 204 string navigationSmall = (Model.Item.GetBoolean("NavigationSmall")) ? "slider-nav-sm" : string.Empty; 205 string navigationInvertColors = (Model.Item.GetBoolean("NavigationInvertColors")) ? "slider-nav-dark" : string.Empty; 206 string navigationSlideEntirePage = (Model.Item.GetBoolean("NavigationSlideEntirePage")) ? "slider-nav-page" : string.Empty; 207 string navigationNoLoop = (Model.Item.GetBoolean("NavigationNoLoop")) ? "slider-nav-noloop" : string.Empty; 208 string indicatorsOutsideSlider = (Model.Item.GetBoolean("IndicatorsOutsideSlider") && indicatorStyle != string.Empty) ? "slider-indicators-outside" : string.Empty; 209 string indicatorsHighlightActive = (Model.Item.GetBoolean("IndicatorsHighlightActive")) ? "slider-indicators-highlight" : string.Empty; 210 string indicatorsInvertColors = (Model.Item.GetBoolean("IndicatorsInvertedColors")) ? "slider-indicators-dark" : string.Empty; 211 string indicatorsVisibleOnSmallDevices = (Model.Item.GetBoolean("IndicatorsVisibleOnSmallDevices")) ? "slider-indicators-sm" : string.Empty; 212 bool showFavoritesSelectorMasterProduct = Model.Item.GetBoolean("ShowFavoritesSelectorMasterProduct"); 213 214 bool productsFound = true; 215 if (string.IsNullOrEmpty(groupIds) && string.IsNullOrEmpty(productIds)) 216 { 217 if (Pageview.IsVisualEditorMode) 218 { 219 productIds = product.Id; 220 sourceType = "selected"; 221 } 222 else 223 { 224 productsFound = false; 225 } 226 } 227 } 228 229 @*Container element for the request*@ 230 @if (productsFound) 231 { 232 <form method="post" action="@url" id="RelatedProductsForm_@Model.ID" data-response-target-element="RelatedProducts_@Model.ID" data-preloader="inline" data-update-url="false" class="item_@Model.Item.SystemName.ToLower()"> 233 <input type="hidden" name="ModelID" value="@Model.ID"> 234 235 @*--- SLIDER SETTINGS ---*@ 236 <input type="hidden" name="NavigationStyle" value="@navigationStyle"> 237 <input type="hidden" name="NavigationPlacement" value="@navigationPlacement"> 238 <input type="hidden" name="IndicatorStyle" value="@indicatorStyle"> 239 <input type="hidden" name="RevealSlides" value="@revealSlides"> 240 <input type="hidden" name="NavigationAlwaysVisible" value="@(navigationAlwaysVisible)"> 241 <input type="hidden" name="NavigationVisibleOnTouch" value="@(navigationVisibleOnTouch)"> 242 <input type="hidden" name="NavigationShowScrollbar" value="@(navigationShowScrollbar)"> 243 <input type="hidden" name="NavigationSmall" value="@(navigationSmall)"> 244 <input type="hidden" name="NavigationInvertColors" value="@(navigationInvertColors)"> 245 <input type="hidden" name="NavigationNoLoop" value="@(navigationNoLoop)"> 246 <input type="hidden" name="NavigationSlideEntirePage" value="@(navigationSlideEntirePage)"> 247 <input type="hidden" name="IndicatorsOutsideSlider" value="@(indicatorsOutsideSlider)"> 248 <input type="hidden" name="IndicatorsHighlightActive" value="@(indicatorsHighlightActive)"> 249 <input type="hidden" name="IndicatorsInvertColors" value="@(indicatorsInvertColors)"> 250 <input type="hidden" name="IndicatorsVisibleOnSmallDevices" value="@(indicatorsVisibleOnSmallDevices)"> 251 <input type="hidden" name="ShowFavoritesSelectorMasterProduct" value="@(showFavoritesSelectorMasterProduct.ToString())"> 252 253 @*--- VARIANTS ---*@ 254 @if (sourceType == "variants") 255 { 256 <input type="hidden" name="isVariant" value="true"> 257 <input type="hidden" name="MainProductID" id="MainProductID_@Model.ID" value="@productIds"> 258 } 259 260 @*--- MOST SOLD ---*@ 261 @if (sourceType == "most-sold") 262 { 263 <input type="hidden" name="SortBy" value="OrderCount"> 264 if (groupIds != "") 265 { 266 <input type="hidden" name="GroupId" value="@groupIds"> 267 } 268 } 269 270 @*--- TRENDING ---*@ 271 @if (sourceType == "trending") 272 { 273 <input type="hidden" name="SortBy" value="OrderCountGrowth"> 274 if (groupIds != "") 275 { 276 <input type="hidden" name="GroupId" value="@groupIds"> 277 } 278 } 279 280 @*--- FREQUENTLY BOUGHT ---*@ 281 @if (sourceType == "frequently" && !string.IsNullOrEmpty(productIds)) 282 { 283 <input type="hidden" name="BoughtWithProductIds" value="[@productIds]"> 284 } 285 286 @*--- LATEST ---*@ 287 @if (sourceType == "latest") 288 { 289 <input type="hidden" name="SortBy" value="Created"> 290 <input type="hidden" name="GroupId" value="@groupIds"> 291 } 292 293 @*--- SELECTED PRODUCTS ---*@ 294 @if (sourceType == "selected") 295 { 296 <input type="hidden" name="MainProductID" id="MainProductID_@Model.ID" value="@productIds"> 297 } 298 299 @*--- RELATED PRODUCTS ---*@ 300 @if (sourceType == "related-products") 301 { 302 <input type="hidden" name="MainProductID" id="MainProductID_@Model.ID" value="@productIds"> 303 } 304 305 @* General parameters *@ 306 <input type="hidden" name="Link" value="@link"> 307 <input type="hidden" name="HideTitle" value="@Model.Item.GetString("HideTitle")"> 308 <input type="hidden" name="SortOrder" value="DESC"> 309 @if (Model.Item.GetInt32("ProductsCount") != 0) 310 { 311 <input type="hidden" name="PageSize" value="@Model.Item.GetInt32("ProductsCount")"> 312 } 313 <input type="hidden" name="HeadingTitle" id="RelatedProductsTitle_@Model.ID" value="@title"> 314 @if (!string.IsNullOrEmpty(Model.Item.GetString("Subtitle"))) 315 { 316 <input type="hidden" name="Subtitle" value="@Model.Item.GetString("Subtitle")"> 317 } 318 @if (!string.IsNullOrEmpty(Model.Item.GetString("LinkText"))) 319 { 320 <input type="hidden" name="LinkText" value="@Model.Item.GetString("LinkText")"> 321 } 322 @if (!string.IsNullOrEmpty(Model.Item.GetString("ImageAspectRatio"))) 323 { 324 string ratio = Model.Item.GetRawValueString("ImageAspectRatio", ""); 325 ratio = ratio != "0" ? ratio : ""; 326 <input type="hidden" name="ImageAspectRatio" value="@ratio"> 327 } 328 @if (!string.IsNullOrEmpty(Model.Item.GetString("Layout"))) 329 { 330 <input type="hidden" name="Layout" value="@Model.Item.GetRawValueString("Layout")"> 331 } 332 @if (titleFontSize != "") 333 { 334 <input type="hidden" name="TitleFontSize" value="@titleFontSize"> 335 } 336 @if (subtitleFontSize != "") 337 { 338 <input type="hidden" name="SubtitleFontSize" value="@subtitleFontSize"> 339 } 340 @if (buttonStyle != "") 341 { 342 <input type="hidden" name="ButtonStyle" value="@buttonStyle"> 343 } 344 @if (generalTheme != "") 345 { 346 <input type="hidden" name="GeneralTheme" value="@generalTheme"> 347 } 348 @if (theme != "") 349 { 350 <input type="hidden" name="Theme" value="@theme"> 351 } 352 @if (imageTheme != "") 353 { 354 <input type="hidden" name="ImageTheme" value="@imageTheme"> 355 } 356 @if (!string.IsNullOrEmpty(Model.Item.GetString("ContentPadding"))) 357 { 358 string contentPadding = Model.Item.GetRawValueString("ContentPadding"); 359 <input type="hidden" name="ContentPadding" value="@contentPadding"> 360 } 361 <input type="hidden" name="TextReadability" value="@maxWidth"> 362 <input type="hidden" name="ParentColumnSize" id="ParentColumnSize_@Model.ID" value="12"> 363 364 <input type="hidden" name="SaleBadgeType" value="@Model.Item.GetRawValue("SaleBadgeType")"> 365 <input type="hidden" name="SaleBadgeCssClassName" value="@Model.Item.GetRawValue("SaleBadgeDesign")"> 366 <input type="hidden" name="NewBadgeCssClassName" value="@Model.Item.GetRawValue("NewBadgeDesign")"> 367 <input type="hidden" name="NewPublicationDays" value="@Model.Item.GetInt32("NewPublicationDays")"> 368 369 @if (campaignValues != "") 370 { 371 <input type="hidden" name="CampaignBadgesValues" value="@campaignValues"> 372 } 373 </form> 374 375 <script type="module" src="~/Files/Templates/Designs/Swift/Assets/js/swiffy-slider.js"></script> 376 <script type="module"> 377 swift.AssetLoader.Load('Files/Templates/Designs/Swift/Assets/css/swiffy-slider.min.css', 'css'); 378 </script> 379 380 if (sourceType != "related-products") 381 { 382 <div class="w-100 h-100"> 383 <div id="RelatedProducts_@Model.ID" class="h-100" style="min-height: 345px"></div> 384 </div> 385 } 386 else if (product?.RelatedGroups != null) 387 { 388 @* Create multiple slider containers, if type is Product relation *@ 389 <div class="grid w-100 h-100@(generalTheme)" style="grid-row-gap: 4rem"> 390 @foreach (var group in product.RelatedGroups) 391 { 392 <div id="RelatedProducts_@(Model.ID)_@group.Id" class="g-col-12 h-100" style="min-height: 345px"></div> 393 } 394 </div> 395 } 396 397 @* Initialize *@ 398 if (sourceType != "related-products") 399 { 400 <script type="module"> 401 if (document.querySelector("#RelatedProducts_@Model.ID").closest("[data-col-size]")) { 402 document.querySelector("#ParentColumnSize_@Model.ID").value = document.querySelector("#RelatedProducts_@Model.ID").closest("[data-col-size]").getAttribute("data-col-size"); 403 } 404 swift.PageUpdater.Update(document.querySelector("#RelatedProductsForm_@Model.ID")); 405 </script> 406 } 407 else if (product?.RelatedGroups != null) 408 { 409 @* Create multiple sliders, if type is Product relation *@ 410 foreach (var group in product.RelatedGroups) 411 { 412 IList<string> fromProductIds = new List<string> { }; 413 414 foreach (var relatedProduct in group.Products) 415 { 416 fromProductIds.Add(relatedProduct.ProductId); 417 } 418 <script type="module"> 419 document.querySelector("#ParentColumnSize_@Model.ID").value = document.querySelector("#RelatedProducts_@(Model.ID)_@group.Id").closest("[data-col-size]").getAttribute("data-col-size"); 420 document.querySelector("#MainProductID_@Model.ID").value = "@string.Join(",", fromProductIds)"; 421 document.querySelector("#RelatedProductsTitle_@Model.ID").value = "@group.Name"; 422 document.querySelector("#RelatedProductsForm_@Model.ID").setAttribute("data-response-target-element", "RelatedProducts_@(Model.ID)_@group.Id"); 423 424 swift.PageUpdater.Update(document.querySelector("#RelatedProductsForm_@Model.ID")); 425 </script> 426 } 427 } 428 } 429
1-2 dages levering
på lagervarer
365 dages returret
Vores kunder elsker os
4,8 Trustscore
Erfaren kundeservice
85 års samlet brancheerfaring