Developer forum
Subject
Replies
Started by
Last reply
Product picker in code first item?
Hi. I am using the code first approch to my current project. Right now I need to be able to allow an editor to pick a product from ecom to show via an item. I have not beeen able to find a way to create such a picker using code first. Can anybody hel ...
Mikael Conley
23/11/2017 09:56:49
Last post: 04/12/2017 14:49:33
Orderflow and emails
Hi, I am in a a situation where I need to sometimes send out an email when order is complete and manipulate the email itself. I have read I can do this is: SendingConfirmationMail So far so good. However, somestimes I need this email not to send out. ...
Jan Sangill
24/11/2017 21:47:47
Last post: 03/12/2017 15:50:58
RenderItemList in DW 9.3.8
Trying to render a list of item in a paragraph template, where i dynamically get a list of Ids of the item i want to render. im using the following code: var DataFromItem = RenderItemList(new { ItemType = "News", ListSourceType = "ItemEntries", Sourc ...
Kenneth Radoor
30/11/2017 20:56:04
Last post: 30/11/2017 21:01:51
User.save > Dynamicweb.Ecommerce.Common.Context.GetCart() throws NullReferenceException
Hello, I'm trying to execute some code after my user import to update some custom fields, but I get a NullReferenceException when I try to call the Save() method : user.CustomFieldValues.FirstOrDefault(x => x.CustomField.SystemName == "AccessUser_ ...
Gaëtan Di Caro
30/11/2017 10:28:50
Last post: 30/11/2017 11:29:55
Send emails using Forms for Editors and API
Hi, Sometimes we need to submit emails in custom development, but still have some configuration. I was wondering if I could (using the API): Point to a DW page where there's a Forms for Editors paragraph Submit some parameters, so that the module wou ...
Nuno Aguiar
28/11/2017 17:27:11
Last post: 29/11/2017 17:04:12
How to handle nullable user custom fields
Hi there, When I add a new Checkbox (boolean) field to a user in the control panel, it's created as a nullable bit in the database. However, when saving that field for the user, it's actually required to provide a value; we have to set it to true or ...
Imar Spaanjaars
10/10/2017 11:36:39
Last post: 28/11/2017 15:55:04
12
Subscribe
Index query for id with no dots
Hi all, I'm pretty new to the lucene indexing and what mechanics lies behind it. However, I currently have a product index containig all kinds of data and a freetext search which works fine. However, as the productid's contains dot like : "0010.2000" ...
Mikkel Toustrup Olsen
27/11/2017 14:03:54
Last post: 28/11/2017 08:36:43
Simulated/Mock discount?
Hi, I have a customer who is asking for this. "If you subscribe to our Club you would be saving $X,00 with this order". To do this, I believe we'd had to get a copy of that cart and simulate as if the user belonged to a specific user group. But I don ...
Nuno Aguiar
23/11/2017 17:43:25
Last post: 27/11/2017 15:51:22
Event before adding product to cart?
Hi Guys, Am trying to find the right event. I need to validate some stuff before I add to the cart. I also need to possibly alter Quantity on the fly if certain conditions match. Tried looking up in Dynamicweb.Notifications.eCommerce.Order.* but can' ...
Dimitrij Jazel
23/11/2017 13:38:16
Last post: 24/11/2017 15:29:58
11
Subscribe
C#6 in Razor templates
Hi there, Is C# 6 and later support in Dynamicweb's Razor templates? I followed the steps documented here: https://stackoverflow.com/questions/33822854/using-nameof-operator-in-razor-views (installed the package Microsoft.CodeDom.Providers.DotNetComp ...
Imar Spaanjaars
21/11/2017 15:10:21
Last post: 21/11/2017 15:23:41
Recommendations for logging from Scheduled Tasks
Hi there, I am building my own scheduled task to send out shipping confirmation emails by inheriting BaseScheduledTaskAddIn. From this task, I would like to write detailed info to the log in case of failures, and a summary in case of success. What is ...
Imar Spaanjaars
18/02/2016 10:30:30
Last post: 21/11/2017 13:30:11
Ledgers numbering
Hi all, I have a solution in 9.3.6 that is going to use the ledgers feature to pay ledgers. My custom code creates a new ledger record that will be sent to the cart to be paid by a standard checkout handler. No issues until this step, and the created ...
Rui Silva
16/11/2017 16:03:10
Last post: 17/11/2017 15:11:19
Dynamicweb 9.3 ViewModel
Hey DW Is it possible in the new Dynamicweb 9.3 to get the Children of an item page, eg: @foreach (Model.Children) { } Best regards Jakob ...
Jakob Westhausen
16/11/2017 11:22:11
Last post: 16/11/2017 17:07:02
Klarna Error Code: 3107
Hello guys, According to Klarna doc. here is the explonation of the Error code: https://www.screencast.com/t/U4JknG6yx Upon the step, where customer enters their Personal number (11 digits) Klarna returns this error code. But adress Information is Fi ...
Dimitrij Jazel
10/11/2017 18:14:29
Last post: 15/11/2017 09:18:47
Project placement for TFS
What is best practice for seting up a project with visual studio? I followed the guide for setting up a new Visual Studio Project (asp.net MVC) but i want to be able to change the files within the "Files"-folder from Visual Studio as well. Do I creat ...
David
13/11/2017 13:22:58
Last post: 13/11/2017 14:55:37
Importing empty values through the Data Integration Module
Hi, How do I import empty values through the Data Integration Module. Currently when my source provider delivers an empty string value. after the import run the current data in the destination (itemtype provider) will remain, instead of being cleared ...
Ben Doorn
18/04/2017 11:26:00
Last post: 10/11/2017 13:01:39
Running DW9 on top of OWIN manually?
With a fresh DW9 installation from NuGet, I can see that Global.asax file implements codebehind of "Global.asax.vb". I would like to get rid of Global.asax file alltogether and start website manually via owin bootstrapper. I can't find any informatio ...
Evaldas Raisutis
09/11/2017 09:26:29
Last post: 10/11/2017 13:01:31
Item stop inheriting
Hi, I have an item that I want to stop inheriting from another one. I can't do it through the UI I updated both the XML and the ItemTypeDefinitions tablel by removing the inherits attribute value update ItemTypeDefinitions Set ItemTypeDefinitionsMeta ...
Nuno Aguiar
08/11/2017 19:10:20
Last post: 09/11/2017 15:44:44
Filter by Discount?
Hi Guys, Customer aproached with a request to have a possibility to filter by Discount. Simmilar like you filter by product field. Product fields is already defined in among new field sources in the Index fields. But in my case, if I want to filter b ...
Dimitrij Jazel
04/10/2017 14:57:42
Last post: 09/11/2017 14:58:48
17
Subscribe
Split orderlines
What is the fastest most reliable way to split one orderline into multiple orderlines? Ex. 2 x PROD1 Shall become 1 x PROD1 1 x PROD1 By default when you buy more than one of one product it is merged, and that is good. But we have a scenario where we ...
Martin Grønbekk Moen
09/11/2017 14:11:50
Last post: 09/11/2017 14:17:08