Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
Template Tags DW10
Hi everyone, I’m running into an issue with some legacy template tags in Dynamicweb 10. As you probably know, template tags aren’t supported anymore in DW10, but some templates still contain them and haven’t been fully updated yet.  ...
Alex Guo
22/08/2025 12:49:45
No replies yet
Show Product field name instead of value
Hi everyone, Is there a way to display the Name instead of the value of a ProductField? I can only find GetProductFieldValue(Product, string) as function in the documentation Thanks in advance, Alex ...
Alex Guo
20/05/2025 17:14:21
Last post: 03/07/2025 13:59:28
PDF to webp
Hi, We used to render PDF thumbnails with this URL: /Admin/Public/GetImage.ashx?image=/Files/Files/product_files/safety_data_sheet/myfile.pdf&width=60&format=webp This works perfectly in Dynamicweb 9, generating a WebP thumbnail preview. This ...
Alex Guo
27/06/2025 14:37:49
No replies yet
Invoice pagination
Hi all, We've customized invoicelist.cshtml to include additional filtering based on custom data from Business Central, specifically using the ICC_filterCompletelyPaid property to filter whether invoices are paid or not. /Files/Templates/Designs/ ...
Alex Guo
23/05/2025 09:10:36
Last post: 26/05/2025 11:54:13
Render Global custom fields of a product
Hey, I'm trying to render a global custom product field called "Unit". Specifically in "/Files/Templates/Designs/Swift/eCom7/CartV2/Step/Helpers/OrderLineItem.cshtml" Its a custom product field but I don't know how to acce ...
Alex Guo
19/05/2025 11:18:11
No replies yet
Email template in custom file.
Hey everyone, I'm working with a custom file where I'm loading a form from the backend using the Dynamicweb API. The form loads and submits data correctly, but I'm stuck on the email functionality. The Problem The code is a custom file an ...
Alex Guo
16/04/2025 12:40:39
Last post: 22/04/2025 14:12:50
How to Get Current Language and Update Checkboxes Accordingly
Hi everyone, I'm an intern and new to dynamic web development. I have a question about handling language detection and updating checkboxes accordingly. Goal: I need to determine the current language set on the website. There are PDF files availab ...
Alex Guo
26/02/2025 09:33:13
Last post: 26/02/2025 12:02:01
Do not render cookie notice on a page
Hi, Is there a way to prevent the cookie warning from being rendered on a particular page? (using DW9.14 and Swift 1.12 - not that it matters) We're using a page to render as pdf and store to disk through a notification. Because that's not ru ...
Nuno Aguiar
20/10/2024 17:18:05
Last post: 21/10/2024 23:39:37
Referencing custom fields in Razor template
Hello. I have created a custom field "GroupDescription", systemname "AccessUser_GroupDescription", and I want to retrieve its value when rendering a page using the name of the group from the group class I have been studying the pa ...
Stephen Anthony Jackson
20/08/2024 13:56:35
Last post: 27/08/2024 10:34:34
Deploying new item_types
Hello. I notice that when you deploy a new item_type (file based copy), without deploying database, then dynamicweb has no idea that there is a new one, and thus will not create the appropriate tables for said item_type. Is there a better way to solv ...
Stephen Anthony Jackson
16/08/2024 12:03:22
Last post: 20/08/2024 13:53:29
Variant Option Name has whitespace removed
In the DB, we have a number of VARIANTOPTIONNAMEs with spaces, but when these are presented to the swift template case VariantGroupDisplayType.VariantName: <span class="d-flex align-items-center justify-content-center">@(option.Name)& ...
Stephen Anthony Jackson
12/08/2024 11:50:16
Last post: 14/08/2024 09:48:52
Best way of getting a shipping method fees
Hello, I am currently modifying ShippingMethods_V2.cshtml and want to modify it so that when you select a shipping method, you can then select a fee associated with that Shipping Method. For example: We have Next Day Shipping Method which has three d ...
Joseph Vause
05/07/2024 12:42:58
Last post: 14/07/2024 13:26:48
RenderItemList - filter on date
Hey Swift uses the RenderItemList, and I need to add a filter on it to ignore items which have a publish time set in the future, which works by adding this filter: string filter = "PublishTime is before " + DateTime.Now.ToString("yyyy- ...
Claus Kølbæk
19/06/2024 12:43:43
Last post: 20/06/2024 13:48:47
'ProductGroupRelation' does not contain a definition for 'GetProductGroupRelations' - Easycatalog
Hi, DW10 I'm having issues with this file which generates an XML-feed for Easy Catalog. I get the following errors and can't get them properly fixed: Line 145: 'Uri.EscapeUriString(string)' is obsolete: 'Uri.EscapeUriString can co ...
Davy Capiau
03/05/2024 09:52:25
Last post: 03/06/2024 17:08:22
Extranet SendUserDetails and ForgottenPassword templates
Hi. We are trying to get the SendUserInfo and ForgottenPassword templates to work in our solution, which has the default templates installed (see below), but the templates refer to an object which does not exist, so all we get are emails with literal ...
Stephen Anthony Jackson
22/05/2024 11:27:39
Last post: 23/05/2024 16:46:56
Cart add doesn't work
Hey guys, I need help with a ( probably) entrylevel front end issue . I have this DW9 website and I have to add this feature "Wrap as a gift" The way I found to fix this is to add a product to the cart when the button is pressed. It works o ...
Alexandru Aliu
23/05/2024 13:26:12
Last post: 23/05/2024 16:31:21
Automatic log-out extranet after session-timeout
According to Nets security demands, a webshop extranet user should be logged out automatically if the user has been inactive for the time of the session-timeout (or other time set). This is not happening in DW today. Maybe it can be implemented in th ...
Michael Fløe Haug
30/11/2017 09:34:37
Last post: 11/04/2024 18:28:20
Ecom:Product:Stock.DeliveryText in ProductViewModel
Hi guys I am in the process of converting an old product details template with template tags to the new product catalog using ProductViewModel. I cannot seem to find any property or method that can give the data i used to find in the template tag Eco ...
Jesper Holm Damgaard
28/09/2021 16:27:20
Last post: 08/04/2024 11:49:52
Error when eanbling code hinting
Hi. I have followed the codehinting instructions (Dynamicweb 9), to the letter, but I am enable to eliminate some last errors. Its clear from the examples below, that its a Linq issue,but I installed System.Linq, reloaded project, rebuilt project, re ...
Stephen Anthony Jackson
25/03/2024 21:47:54
Last post: 04/04/2024 17:08:39
Using templatetag Ecom:Order.Requisition
Hi, I'm trying to implement the DW order standardfield Requisition with templatetag Ecom:Order.Requisition at a swift cart checkout template. The field is rendered just nicely at checkout but the value of the field will not be saved on the order  ...
Søren Jakobsen
12/02/2024 15:22:43
Last post: 13/02/2024 08:02:24