Error executing template "Designs/Salts/eCom/Product/Product-Weglot.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_9b72328b17b84dd39bb23fe9d73f0b82.Execute() in C:\SaltsWebsites\Salts\SaltsGlobalLive\Files\Templates\Designs\Salts\eCom\Product\Product-Weglot.cshtml:line 203
   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 @using Dynamicweb.Ecommerce.Products 2 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 3 @{ 4 string groupId = System.Web.HttpContext.Current.Request.QueryString["GroupID"]; 5 string baseWeglotLang = System.Web.HttpContext.Current.Request.Headers["weglot-language"]; 6 7 //Salts_Dw9.Files.Templates.Designs.Salts.Ecom.ProductList.GroupProducts.GetPageData(); 8 9 Dynamicweb.Ecommerce.Products.Group thePrimaryGroup = new Group(); 10 if (string.IsNullOrEmpty(groupId)) 11 { 12 groupId = (string)System.Web.HttpContext.Current.Session["CurrentGroupId"]; 13 } 14 15 Dynamicweb.Ecommerce.Products.Group thisGroup = Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(groupId, GetString("Ecom:Product.LanguageID")); 16 Group parentGroup = new Group(); 17 18 if (thisGroup !=null) 19 { 20 parentGroup = thisGroup.ParentGroups.FirstOrDefault(); 21 } 22 } 23 <div class="m-column-two"> 24 <div class="l-container"> 25 <div class="container-fluid"> 26 <div class="l-row row"> 27 <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3" style="position: sticky; top: 0px;"> 28 <div id="product-menu" class="product-menu subnav-nested subnav-nested-primary subnav-nested-isactive"> 29 30 @*On Product page there is no reference to get the heirarchy*@ 31 @if (parentGroup != null && parentGroup.IsTopGroup) 32 { 33 34 <div class="subnav subnav-nested subnav-nested-primary subnav-nested-isactive"> 35 <div class="subnav-content"> 36 <nav aria-label="Sub Groups Navigation" role="navigation"> 37 <ul class="list-unstyled content-menu"> 38 <li><h3 class="section-navigation living"><a href="Default.aspx?ID=@GetInteger("Ecom:Product:Page.ID")">@parentGroup.Name</a></h3></li> 39 40 @foreach (Group group in parentGroup.Subgroups) 41 { 42 if (group.Id == GetString(("Ecom:Group.ID"))) 43 { 44 <li class="Selected" style="padding-left: 10px;"><strong>@group.Name</strong></li> 45 } 46 else 47 { 48 <li style="padding-left: 10px;"><strong>@group.Name</strong></li> 49 } 50 51 Dynamicweb.Ecommerce.Products.Group currentGroup = new Dynamicweb.Ecommerce.Products.GroupService().GetGroup(group.Id); 52 53 if (new Dynamicweb.Ecommerce.Products.GroupService().HasProducts(currentGroup)) 54 { 55 <ul class="list-unstyled"> 56 @foreach (var product in currentGroup.ProductsByLanguageWithOutVariants) 57 { 58 <li style="padding-left: 10px;" id="@product.Id"> 59 <a href="Default.aspx?ID=@GetInteger("Ecom:Product:Page.ID")&ProductID=@product.Id">@product.Name</a> 60 </li> 61 } 62 </ul> 63 } 64 } 65 <li><h3 class="section-navigation living"><a href="/Default.aspx?ID=4521">@Translate("additional_products","Additional Products")</a></h3></li> 66 </ul> 67 </nav> 68 </div> 69 </div> 70 } 71 72 </div> 73 74 @if (parentGroup != null && parentGroup.IsTopGroup) 75 { 76 77 <div class="subnav subnav-nested subnav-nested-mobile"> 78 <div class="dropdown"> 79 <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" style="width: 100%;">View @parentGroup.Name products<span class="caret"></span></button> 80 81 <ul class="dropdown-menu list-unstyled content-menu" style="padding: 8px; width: 100%;"> 82 @foreach (Group group in parentGroup.Subgroups) 83 { 84 if (group.Id == GetString(("Ecom:Group.ID"))) 85 { 86 <li class="Selected"><strong>@group.Name</strong></li> 87 } 88 else 89 { 90 <li><strong>@group.Name</strong></li> 91 } 92 93 Dynamicweb.Ecommerce.Products.Group currentGroup = new Dynamicweb.Ecommerce.Products.GroupService().GetGroup(group.Id); 94 95 if (new Dynamicweb.Ecommerce.Products.GroupService().HasProducts(currentGroup)) 96 { 97 <ul class="list-unstyled"> 98 @foreach (var product in currentGroup.ProductsByLanguageWithOutVariants) 99 { 100 if (product.Id == GetString("Ecom:Product.ID")) 101 { 102 <li class="Selected" id="@product.Id"> 103 <a href="Default.aspx?ID=@GetInteger("Ecom:Product:Page.ID")&ProductID=@product.Id">@product.Name</a> 104 </li> 105 } 106 else 107 { 108 <li id="@product.Id"> 109 <a href="Default.aspx?ID=@GetInteger("Ecom:Product:Page.ID")&ProductID=@product.Id">@product.Name</a> 110 </li> 111 } 112 113 } 114 </ul> 115 } 116 } 117 <li><a class="subnav-toggle subnav-toggle-secondary" href="/Default.aspx?ID=4521">@Translate("additional_products","Additional Products")</a></li> 118 </ul> 119 120 121 </div> 122 </div> 123 124 } 125 126 </div> <!-- col --> 127 128 <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9"> 129 130 @*<p>Parent Group: @parentGroup.Name @parentGroup.Id</p> 131 @if (thePrimaryGroup != null) 132 { 133 <p>vs The Product Primary Group: @thePrimaryGroup.Id @GetString("Ecom:Product.PrimaryOrFirstGroupID") @thePrimaryGroup.Name</p> 134 <p>vs The group in session: (@System.Web.HttpContext.Current.Session["CurrentGroupId"])</p> 135 }*@ 136 137 138 <input type="hidden" id="currentProductId" value="@GetValue("Ecom:Product.ID")" /> 139 <div id="productdescription" style="display:none;"> 140 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product.Name"))) 141 { 142 <h2>@GetValue("Ecom:Product.Name")</h2> 143 } 144 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product.LongDescription"))) 145 { 146 @GetValue("Ecom:Product.LongDescription") 147 } 148 @if (GetString("Ecom:Product.ID") == "PROD40" || GetString("Ecom:Product.ID") == "PROD41" || GetString("Ecom:Product.ID") == "PROD68" || GetString("Ecom:Product.ID") == "PROD100") 149 { 150 } 151 else 152 { 153 <p><a href="@GetString("Ecom:Product.Link.Clean")#orderSample" class="m-btn m-btn-info btn btn-info text-uppercase" style="background-color: #77b800;">Request a sample</a></p> 154 } 155 </div> 156 157 <div class="m-product-gallery"> 158 <div class="m-product-gallery-large"> 159 <div> 160 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product.ImageMedium.Clean"))) 161 { 162 <img src="@GetString("Ecom:Product.ImageMedium.Clean")" alt="@GetString("Ecom:Product.Name")" class="img-responsive"> 163 } 164 else 165 { 166 <img src="@GetString("Ecom:Product.ImageMedium.Default.Clean")" alt="No image available" class="img-responsive"> 167 } 168 </div> 169 </div> <!-- m-product-gallery-large --> 170 </div> <!-- m-product-gallery --> 171 172 173 174 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product:Field.productInformation"))) 175 { 176 <h2>@Translate("product_information","Product Information")</h2> 177 @GetString("Ecom:Product:Field.productInformation") 178 <div class="spacer">&nbsp;</div> 179 } 180 181 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product:Field.productFeature"))) 182 { 183 @GetString("Ecom:Product:Field.productFeature") 184 <div class="spacer">&nbsp;</div> 185 } 186 187 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product:Field.productFeaturesWafer"))) 188 { 189 @GetString("Ecom:Product:Field.productFeaturesWafer") 190 <div class="spacer">&nbsp;</div> 191 } 192 193 @if (Dynamicweb.Core.Converter.ToBoolean(GetString("Ecom:Product:Field.videoLink"))) 194 { 195 <div class="m-embed-responsive embed-responsive embed-responsive-16by9"> 196 <iframe class="embed-responsive-item" src="@GetString("Ecom:Product:Field.videoLink")"></iframe> 197 </div> 198 <div class="spacer">&nbsp;</div> 199 } 200 @if (Dynamicweb.Core.Converter.ToBoolean(GetValue("Ecom:Product.VariantCount"))) 201 { 202 <h3 id="orderSample">Product sizes and sample ordering</h3> 203 <p>To order a sample of the @GetValue("Ecom:Product.Name") or any of the other <a href="Default.aspx?ID=@GetInteger("Ecom:Product:Page.ID")">@parentGroup.Name products</a> we supply, then simply click on the order sample button at the end of the relevant row. If you are unsure which product samples to order, then simply use our <a href="/contact-us">contact form</a> and let us know your requirements.</p> 204 } 205 <div class="m-table-responsive table-responsive"> 206 <table id="@GetValue("Ecom:Product.ID")" class="m-table-col-4 table table-bordered table-striped sortTable sample"> 207 <thead class="m-theme-bg-green-extralight"> 208 <tr> 209 <th class="id" scope="col" style="text-align:left;">Product Code</th> 210 <th class="details" scope="col" style="text-align:left;">Details</th> 211 <th class="number" scope="col" style="text-align:center;">Product Number</th> 212 <th class="samplequantity" scope="col" style="text-align:center;">Sample Quanity</th> 213 <th class="packsize" scope="col" style="text-align:center;">Pack Size</th> 214 <th class="add" scope="col">&nbsp;</th> 215 </tr> 216 </thead> 217 218 <tbody> 219 @foreach (LoopItem i in GetLoop("VariantCombinations")) 220 { 221 string cl = "listitem" + i.GetValue("VariantCombinations.LoopMod2"); 222 <tr class="@cl" data-sort="@i.GetValue("Ecom:Product:Field.sortOrder")" id="@(i.GetString("Ecom:Product.Number").Replace("*",""))"> 223 <td class="id skip-translate" style="text-align:left;">@i.GetValue("Ecom:Product.Number")</td> 224 <td class="details" style="text-align:left;">@i.GetValue("Ecom:Product.VariantText")</td> 225 @if (baseWeglotLang == "nl") 226 { 227 <td class="number" style="text-align:center;">@i.GetValue("Ecom:Product:Field.NetherlandsProductNumber.Value.Clean")</td> 228 } 229 else 230 { 231 <td class="number" style="text-align:center;">@i.GetValue("Ecom:Product:Field.NorwayProductNumber.Value.Clean")</td> 232 } 233 <td class="samplequantity" style="text-align:center;">@i.GetValue("Ecom:Product:Field.sampleQuantity.Value.Clean")</td> 234 <td class="packsize" style="text-align:center;">@i.GetValue("Ecom:Product:Field.packquantity.Value.Clean")</td> 235 <td class="add" ><a href="Default.aspx?ID=5 @i.GetValue("Ecom:VariantCombination.Page.ID")&amp;ProductID=@i.GetValue("Ecom:VariantCombination.Product.ID")&amp;variantid=@i.GetValue("Ecom:VariantCombination.VariantID")&amp;cartcmd=add" class="m-btn m-btn-primary btn btn-primary pull-right text-uppercase add-sample">@Translate("add","Add")</a></td> 236 </tr> 237 } 238 </tbody> 239 </table> 240 @if (GetString("Ecom:Product.ID") == "PROD40" || GetString("Ecom:Product.ID") == "PROD41" || GetString("Ecom:Product.ID") == "PROD68" || GetString("Ecom:Product.ID") == "PROD100") 241 { 242 } 243 else 244 { 245 <!--<p style="padding-top: 10px; width: 100%; text-align: right;"><a href="/sample-orders" class="m-btn m-btn-info btn btn-info text-uppercase" tabindex="0" style="background-color: #77b800;">Request a sample</a></p>--> 246 } 247 </div> <!-- table-responsive --> 248 249 <div class="table-footer"> 250 @if (GetString("Ecom:Product:Field.productTableFooter") != "") 251 { 252 <p>@GetValue("Ecom:Product:Field.productTableFooter")</p> 253 } 254 </div> 255 256 257 <div class="m-product-container-closed related-products"> 258 <h3>@Translate("other_additional_products","Other additional products")</h3> 259 <div class="l-group-3-inset row" style="overflow: auto; margin-bottom: 30px;"> 260 261 @foreach (LoopItem i in GetLoop("ProductRelatedGroups")) 262 { 263 foreach (LoopItem i2 in i.GetLoop("RelatedProducts")) 264 { 265 <div class="l-group-content col-ms-6 col-sm-4"> 266 <div class="m-product"> 267 <div class="m-product-visual"> 268 269 @{ 270 string link = string.Empty; 271 string image = string.Empty; 272 string button = string.Empty; 273 } 274 275 @*<p>ProductUrl: @i2.GetString("Ecom:Product.Link.Clean")</p> 276 <p>ProductImage: @i2.GetValue("Ecom:Product.ImageSmall.Clean")</p> 277 <p>ProductImage: @i2.GetValue("Ecom:Product.ImageSmall.Clean")</p> 278 <p>ProductImage2: @i2.GetValue("Ecom:Ecommerce.Product.ImageSmall.Default.Clean")</p>*@ 279 280 @if (Dynamicweb.Core.Converter.ToBoolean(i2.GetString("Ecom:Product:Field.ProductURL.Value.Clean"))) 281 { 282 link = "<a href=" + i2.GetString("Ecom:Product.Link.Clean") + ">{0}</a>"; 283 } 284 else 285 { 286 link = "<a href=" + i2.GetValue("Ecom:Product.Link.Clean") + ">{0}</a>"; 287 } 288 @if (Dynamicweb.Core.Converter.ToBoolean(i2.GetString("Ecom:Ecommerce.Product.ImageSmall.Default.Clean"))) 289 { 290 image = "<img class='img-responsive' src='" + i2.GetString("Ecom:Product.Link.Clean") + "' alt='No image currently available'>"; 291 } 292 else 293 { 294 image = "<h4 style='padding: 12px 12px 0px 12px; height: 42px;'>" + i2.GetString("Ecom:Product.Name") + "</h4><img class='img-responsive' src='" + i2.GetString("Ecom:Product.ImageSmall.Clean") + "' alt='" + i2.GetString("Ecom:Product.Name") + "'>"; 295 } 296 297 @string.Format(link, image) 298 299 </div> 300 <div class="m-product-cta text-center"> 301 @if (Dynamicweb.Core.Converter.ToBoolean(i2.GetValue("Ecom:Product:Field.ProductURL.Value.Clean"))) 302 { 303 <p><a href="@GetString("Ecom:Product.Link.Clean")" class="m-btn btn btn-primary text-uppercase">@Translate("ViewProduct", "View Product")</a></p> 304 if (GetString("Ecom:Product.Name") != "Salts Support Wear") 305 { 306 <p><a href="@GetString("Ecom:Product.Link.Clean")#orderSample" class="m-btn m-btn-info btn btn-info text-uppercase">@Translate("OrderSample", "Order Sample")</a></p> 307 } 308 } 309 else 310 { 311 <p><a href="@i2.GetString("Ecom:Product.Link.Clean")" class="m-btn btn btn-primary text-uppercase">@Translate("ViewProduct", "View Product")</a></p> 312 if (GetString("Ecom:Product.Name") != "Salts Support Wear") 313 { 314 <!--<p><a href="/sample-orders" class="m-btn m-btn-info btn btn-info text-uppercase">@Translate("OrderSample", "Order Sample")</a></p>--> 315 <p><a href="@i2.GetString("Ecom:Product.Link.Clean")#orderSample" class="m-btn m-btn-info btn btn-info text-uppercase">@Translate("OrderSample", "Order Sample")</a></p> 316 } 317 } 318 </div> 319 </div> <!-- m-product --> 320 </div> 321 } 322 } 323 324 </div> <!-- row --> 325 </div> 326 <!-- m-product --> 327 328 </div> <!-- col --> 329 </div> <!-- row --> 330 </div> <!-- container-fluid --> 331 </div> <!-- l-container --> 332 </div>

Product Information

Urostomy bags are worn by those who have recently had urostomy surgery. After your urostomy surgery you will have a night drainage bag attached to collect your urine. Urostomy bags will be most likely transparent or have a viewing window. This will allow your Stoma Care Nurse to check on the colour and size of your stoma easily.
 

Types of urostomy bags

We pride ourselves on developing urostomy products which offer quality of life for those people living with a stoma. ​We have a range of one-piece flat and one-piece convex urostomy bags and supplies for you to sample from.

Our flat one-piece urostomy product range includes: 

  • Confidence® Urostomy
  • Confidence® Natural
  • Confidence® Natural Advance

A sleek, low-profile bag design that looks less like a medical device. The outlet tucks away and is securely fastened giving the illusion of a closed bag and the soft bung is comfortable without compromising ease of use. The flow control mechanism makes it easy to control the flow of urine and a rotating and the detachable bung lanyard can be moved away from urine flow when draining.

Our Confidence® Natural range features a unique five-sided Flexifit® wafer for a perfect fit. Our hydrocolloids are infused with extracts of Aloe Vera, which may help to soothe and protect your skin.

We also have a Confidence® Convex Supersoft product range. This particular urostomy product range provides firm convexity and is extremely comfortable for your stoma.

Always follow the directions for use.