Avoid having orderlines removed?
Dear Dynamicweb, We have a situation where a salesperson can create a quote for a user with items that are outside the assortment of the user, and the user should then be able to accept the quote with these items. When impersonating we can give the s ...
Secure WebAPI with OAuth
Are there examples on how to secure the WebApi with OAuth? Thinking of adding Okta to one api, in order to secure it, but then I need to do changed in Startup.cs. Can that be extended, or are there other solutions to this? https://developer.okta.com/ ...
Martin Grønbekk Moen
Add orderline using API
Hi In the notification "BeforeRenderingNewStep" I need to add an orderline to the cart. The orderline must be with an existing product but the price of the product is variable and must therefore be set for the added orderline. I have tried a lot of d ...
Code first Item tab example
Hey I am looking for an example for using an item tab in the code first approach. I found the following: https://doc.dynamicweb.com/api/html/770aa35e-0b4b-50ee-74b7-1a8b855939ba.htm https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard- ...
Extending ValidateOrder(settings As ModuleSettings, order As Order)
Hi Dynamicweb, We need to make some custom validation on the orders. Will it be possible to hook into the validation rutine in: ValidateOrder(settings As ModuleSettings, order As Order), so we can add our custom validations and errors to the list? Be ...
Method AuthenticateRequestArgs.get_Application() not found with DW 9.9.6
Hello: I had a web page that use a custom WebApi by following the next post: https://doc.dynamicweb.com/forum/dynamicweb-9-0-upgrade-issues/dynamicweb-9-0-upgrade-issues/using-webapi-with-attribute-routing-in-dw-9 Before update DW to 9.9.6 all works ...
Check if inside DW context?
Hi, I'm sharing some of my code between DW and non-DW projects. Is there a proper way to check programmatically if I am inside a DW context? Everything I've tried to use in the Dynamicweb libraries throws null references. I know I could put up try-ca ...
Replace ImageGlue with MagicScaler
Hi there, I am trying to replace ImageGlue with MagicScaler. I can successfully add the package Dynamicweb.Imaging.Providers.MagicScalerProviders to my solution. When I then build my project and manually delete Dynamicweb.Imaging.Providers.ImageGlueP ...
Bug in new user registration when cart has items
i am getting bug on new user register when items in the cart. at Dynamicweb.Ecommerce.Cart.CartSession.Add(String key, Object value) at Dynamicweb.Ecommerce.Common.Context.SetCart(Order cart, User user, OrderContext orderContext) at Dynamicweb.Ecomme ...
Range price facet
Hi: I have to implement a range price facet. This range has to contain the maximun and minimun price of a set of products. For example , if i have a set of bikes the minimun is 100 and the maximun is 10000. So if i want to get only the white bikes by ...
Query with sort order throwing IndexOutOfBounds
I am having an issue with the below code. The code throws the following exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Lucene.Net.Search.AnonymousClassLongParser1.ParseLong(String val) at Lucene.Net.Search.F ...
Reading from an index?
This seems like a very trivial question, but I have been unable to figure out how to perform even the simplest of queries against an index using code. The simplest of pointers or any link to documentation on this would be much appreciated. Best Regar ...
Redirect URLs that contain multiple forward slashes and/or uppercase letters
Hi, Is there an easy way to avoid multiple forward slashes in DW 9 URLs? For example http://example.com//test and http://example.com//////////test should both redirect to http://example.com/test for SEO purposes to avoid duplicate content. And while ...
Scheduled task Method options?
Hi, I am in need of creating a scheduled task and have looked through the documentation for this. I will probaly build an addin for this, but wanted to properly understand my options. I have the following questions: What are my options with the Metho ...
No replies yet
Improvement of creating user in checkout
Dear Dynamicweb, We have some suggestions to the handling of user creation in the checkout. First is will be great if you can change the behaviour of "Context.Current.Request("EcomUserCreateNew") IsNot Nothing" to actually check for a boolean and not ...
How to calculate the lowest price?
Hi, We have a requirement for calculating the lowest price for a customer, which means calculating the overall lowest price including discounts. So the lowest price found in the EcomPrices-table may not be the lowest as a customer can be related to a ...
Issue with obsolete method CustomerProductListProduct - after update to 9.9.4 times out
Hi, I was using this method in 9.6.5: IEnumerable<Dynamicweb.Ecommerce.CustomerCenter.CustomerProductListProduct> customerProductListProducts = Dynamicweb.Ecommerce.CustomerCenter.CustomerProductListProduct.GetPagedProductsByListId(Convert.ToIn ...
BeforeCustomFieldValueIsChanged not hit for checkboxes
Dear Dynamicweb, We see that the notification subscriber: BeforeCustomFieldValueIsChanged (and BeforeCustomFieldValueIsSet etc.) is not fired for checkboxes. Please find this code in SetPostValues: Dim valueChanged As Boolean = value <> Convert ...