Developer forum

Forum » Development » classes for instant search

classes for instant search


Reply
I want to know where to find a list of classes available for the instant search. Classes like:
dw-search-result
dw-search-result-defaultprice
- and so on.

I'm in need of at least one class "discount price", or whatever it may be called. At the moment, when searching. It doesn't show the real price, just default price.

Replies

 
Reply
Hi Michael,
Dynamicweb.eCommerce.Products.Product class has property Discounts() (as Dynamicweb.eCommerce.Discounts.Discounts)
Property Price() of Dynamicweb.eCommerce.Discounts.Discounts class returns the new  price for the product (as Dynamicweb.eCommerce.Prices.IPriceInfo) when discounts are subtracted.
 
Reply
Hi Michael,

Sorry, it's not possible - the discount prices are not being indexed (and therefore are not available when using the new search). One of the reasons is that they can be calculated remotely, through the external system which might result in a huge performance degradations when performing an update of the index.

-- Pavel
 
Nicolai Høeg Pedersen
Reply
Another issue is that discounts can vary from user to user, different times, and in different combinations - i.e. if you buy more than x-amount or a specific ordersum - so they cannot be indexed. They are always calculated.

 

You must be logged in to post in the forum