Developer forum

Forum » Templates
Subject
Replies
Started by
Last reply
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
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
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
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
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
Issue with HTTPS Links in Development Environment
I recently migrated my application from production to development, and I've noticed that all links are still loading with https, even though I've disabled SSL. The CSS and images are trying to be fetched from https:// URLs, which is not confi ...
Tomislav Bušić
28/11/2023 13:48:34
Last post: 28/11/2023 14:32:56
Facebook Pixel
Hi, Is there a quick way to add the Facebook Pixel or is this just done manually in the head? Caro ...
Caro De Weze
27/10/2023 08:03:50
Last post: 27/10/2023 10:04:12
Errors when using related products
Hello. We have defined a seperate index repository for one of our sites, and the Ecom / Pim point to that. However, when using related products (products which have nothing to do with Bikeshop Repo), we get template errors due to missing fields (fiel ...
Stephen Anthony Jackson
12/10/2023 10:50:27
Last post: 23/10/2023 16:39:58
Multiple Product Lists, Navigation Tag, Breadcrumbs and URL
Hello. We are developing a site, where we wish to align the urls / breadcrumbs with the path to the product we are clicking from the product list. e.g http://site/webshop/toys/ (product list with groupid param set to toys group) http://site/webshop/t ...
Stephen Jackson
21/09/2023 10:37:43
Last post: 21/09/2023 22:44:26
Enumerating Product Fields / Product Category Fields from an item_type dropdown list
Hello. I am trying to develop a generic item type for displaying a product or product category field. I have defined an item type with a "Product Field" (Drop down) and Style field (Text), and created the follow SQL Query as the source for  ...
Stephen Jackson
18/09/2023 10:48:06
Last post: 21/09/2023 10:26:16
Adding new partials to components
Hello I am trying to make a new reusable component to display product information, and one of the features I want to add is a custom field for the products we wish to show. I therefore want to add a new partial to the list of available product partia ...
Stephen Jackson
11/09/2023 10:56:36
Last post: 18/09/2023 11:02:14
RenderItemList check if results exist from the paragraph template
Developing a custom Swift_ArticleList template I noticed a problem that will come up again and again in the future. The architecture is that the paragraph template is building the container for the paragraph, this could be a slider for example. It th ...
Igor Ivanov
07/09/2023 14:58:49
Last post: 07/09/2023 15:22:24
Firefox browser cache issue
Hi there! I have a problem when using the Firefox browser. If I make a change to a file, for example a template that renders a component, the browser does not notice the change after saving the change. Only after clearing the cache memory of the brow ...
Mario Kožić
24/08/2023 08:59:58
Last post: 24/08/2023 16:54:37
Setting variable in Page template and Getting variable in Paragraph template
Hi, I've been trying to set a value in a Page template and then access the value in a Paragraph template. I am setting the value as such: Dynamicweb.Context.Current.Items.Add("MyValue", MyListVariable); I tried with a simple string valu ...
Nuno Aguiar
30/06/2023 09:36:41
Last post: 30/06/2023 10:14:52
Set order state by code
Hi, Is it possible to set order state by code? Have tried to do it in the same way you can set order context <input type="hidden" name="OrderContext" value="ORDERCONTEXT1"> <input type="hidden" name=&q ...
Alexander Tømmerholen
05/06/2023 12:32:52
Last post: 06/06/2023 15:39:49
Remove user in the frontend
Hi, We need a link "Remove account" at the frontend so that a logged user can remove his account of the website. It is a legal requisite in the country of the website. In the API there is a User.Delete() function but I'm unsure of its i ...
Tomas Gomez
12/05/2023 12:55:38
Last post: 01/06/2023 13:54:41
Dibs/Nets Easy check with parameter merchantHandlesConsumerData: true
Hi community, I'm trying to add a merchantHandlesConsumerData: true parameter to the post template EmbededDibs.html to avoid the "Adresse & Betalings" section on the Dibs/Nets paymentpage. According to Nets support the parameter sho ...
Søren Jakobsen
10/05/2023 15:10:36
Last post: 16/05/2023 08:42:51
Visibility of navigation buttons in Shopping cart app
Hi, We use InformationUser.cshtml as the template of one of the steps of the Shopping cart app. The version is DW 9.15.3 and Swift 1.16.0. In that template, the visibility of the navigation buttons depends on the non-emptyness condition of some field ...
Tomas Gomez
11/04/2023 11:54:01
Last post: 31/05/2023 19:36:12