Developer forum

Forum » Development
Subject
Replies
Started by
Last reply
Notifications - Order.AfterSave
Hi, I'm using a Dynamicweb.Notifications.eCommerce.Order.AfterSave subscriber to send out mails with the order to specific persons. I've set up some conditions so that if the stock level is < 10, the mail is sent to one person and if it is >= 1 ...
René Poulsen
03/02/2017 09:03:00
Last post: 13/06/2017 10:30:25
Override paragraph rendering
Im using impersonation, and have a few issues regarding showing correct paragraphs to users. Consider this scenario. Im logged in as User A which is representing User B. Paragraph A is denied for User A but allowed for User B. When im representing Us ...
Martin Grønbekk Moen
02/06/2017 14:58:50
Last post: 12/06/2017 10:42:33
Transfer items created in admin to code first
I have created a lot of items through the admin interface, but now I would like to maintain them through code. Are there any simple ways of moving from admin based items to code first items? Or do I just have to delete them in admin, and re-create in ...
Martin Grønbekk Moen
10/06/2017 15:17:02
Last post: 12/06/2017 08:33:10
Notifications.UserSaved - User ItemType
I'm trying to use the "Notifications.UserSaved" observer to set an item-field with a value, stored in a cookie, when the user registers through the extranet. The user is added to a group, which states that the itemtype should be set; when registering ...
Jonas Mersholm
08/06/2017 12:11:21
Last post: 08/06/2017 12:18:48
Checking if a orderExtender is run when rendering order confirmation mail
Hi I have an orderExtender that makes some custom tags and custom loops. To prevent it from running too many times on for instance the Cart, i've made sure that runs only once per Request. However when i want these tags to be used in the order confir ...
Anders Ditlevsen
30/05/2017 15:07:18
Last post: 07/06/2017 13:17:18
Check if user has access to paragraph
What is the fastest and best way to check if a user (by user id) has access to a paragraph (by paragraph id)? As you understand I dont want to check if the current user has access to the current paragraph, but if a user has access to a paragraph. Tri ...
Martin Grønbekk Moen
02/06/2017 11:06:47
Last post: 02/06/2017 13:10:08
The RMA notification email is not firing
Hi, I am setting up RMA for my website. I set up email for state email notifications in configuration setting for RMA in management center. let's say the default state is state A. when RMA is created, it's state will be stateA. but the email set up f ...
Arker Soe
26/05/2017 08:39:40
Last post: 30/05/2017 09:17:32
Building Repository Indexes Manually
Hi We have a project where we build the index of a repository used for news items manually. The rebuilding code is run when a item of the type "news item" is saved. To avoid building both instances of the index at the same time, we have used a check  ...
Anders Ditlevsen
19/05/2017 09:03:17
Last post: 29/05/2017 10:52:20
Delete extranet user in code fails due to permissions in eCommerce
Hi, upgrading an old site from to 8.9.x.x i have an issue in a user syncronization method, where a user is supposed to be deleted if conditions are met: UserCollection usersInGroup = User.GetUsersByGroupID(groupId); foreach (User user in usersInGroup ...
Steen Nørgaard Perdersen
22/05/2017 15:32:21
Last post: 24/05/2017 16:22:04
How to check if user has access to a given page?
Hi, The permissions API in DW is not the easiest thing to work with :/ What is the correct way to programmatically check if a given user has access to a given page? I mean, it should be equivalent to what DW does when deciding whether or not to displ ...
Morten Bengtson
07/07/2014 13:56:25
Last post: 24/05/2017 16:20:23
System.IO.FileNotFoundException: Could not find file 'C:\Windows\TEMP\[xyz].dll'
Hi Guys, Yet another strange error. Just popped out on one of our test sites. https://www.screencast.com/t/y5Zz5J4Y Every time you refresh the page, it tries accessing another new random name .dll file. Things we tried: Restarting app pool. IIS reset ...
Dimitrij Jazel
23/05/2017 14:46:45
Last post: 24/05/2017 10:59:03
DW9 Wrap frontpage errors
Hi I have setup a new DW9 wrap of the newest stable version 9.2.12. However after setup, i am met with a couple of razor templates throwing errors on the front page. The setup is purely vanilla and is not modified in any way. I have attached the thro ...
Anders Ditlevsen
19/05/2017 09:10:41
Last post: 23/05/2017 14:08:50
changing Lucene.Net.Search.SimpleFacetedSearch.MAX_FACETS has no effect ?
Hi I would like to configure a facet for an indexed field with more than 2048 distinct values. I tried overriding the SimpleFacetedSearch.MAX_FACETS value but i still cant create the facet without getting the errormessage: "Facets cannot have more th ...
Martin Jensen
03/05/2017 13:25:02
Last post: 22/05/2017 11:31:24
Sitemap.xml add custom code?
Is it possible to add code or somehow programatically change the output from the sitemap.xml that DynamicWeb generates? ...
Emil Ryberg
18/05/2017 13:07:18
Last post: 18/05/2017 13:22:15
Cancel email marketing send for specific user
Hi, How would i cancel an email marketing newsletter for a user if a specific conditional is not met? Etc. The page to send as an email is rendered per. recipient, and i would like to check wether or not the user meets some requirements before procee ...
Jonas Mersholm
17/05/2017 14:48:13
Last post: 17/05/2017 21:40:47
OnAfterSubmitSave in DW8
In DW9 it is possible to get notified, after contents of a form is saved, by using the OnAfterSubmitSave NotificationSubscriber. I cannot find it in DW8 though. Is this not possible in this version? Best regards Kurt Moskjaer Andersen ...
Kurt Moskjær Andersen
15/05/2017 15:02:16
Last post: 17/05/2017 12:54:03
Update Item with Notificationsubscriber
Hi. I would like to update a field on a item, when the item is being saved. Im using the Saving Notification Subscriber, and i can access the ID and Sort. My problem is, that i dont know how to access the data fields in the item. I can see them in th ...
Per Jensen
06/08/2014 12:14:52
Last post: 11/05/2017 13:31:35
AddInParameterDescription for scheduled task parameters
Hi there, Is there a way to provide a help text with add in parameters for things like scheduled tasks? I often have the need to provide some help / context for a parameter but can't find out how other than providing a long name (see attached). I am  ...
Imar Spaanjaars
17/03/2017 11:38:10
Last post: 10/05/2017 22:31:48
Linq query for page-item not working before App-pool restart
Hi there, I'm currently testing a script meant to fetch some pages based on a mix of general page-class properties, and page-item values. The query works fine, but if a pageitem value is updated, it is not registered before an app-pool recycle has be ...
Jonas Mersholm
08/05/2017 15:09:29
Last post: 10/05/2017 16:08:33
Saving OrderState
Hi DynamicWeb when using the following code to save my OrderState on an order, it does not seem to update. Any suggestion on what i am doing wrong? Dynamicweb.eCommerce.Orders.Order order = Dynamicweb.eCommerce.Orders.Order.GetOrderByID(ord.OrderID); ...
Casper Andersen
05/05/2017 16:10:47
Last post: 10/05/2017 11:03:45