Developer forum

Forum » Ecommerce - Standard features » Dynamic Smart Searches with dynamic values depending on context

Dynamic Smart Searches with dynamic values depending on context

Remi Muller
Reply

From the 8.3 release doc:

"Dynamic Smart Searches with dynamic values depending on context
Area: Smart Search
Description: Smart searches can utilize dynamic values in generation such as * @Request(...) Get value from current request * @Session(...) Get value from current session * @Product(...) Get value from current product (if any), e.g. to show similar products
Version: 8.3.0.0"

 

 

I do not understand how to use this. Can DW provide some samples?


I like the idea but how can i use this.

 


Replies

 
Mikkel Ricky
Reply

The item type "News item" on http://items.dynamicweb.dk/ uses a number of dynamic default values (see https://github.com/dynamicweb/itembasedmodules/blob/master/Files/System/Items/ItemType_News_Item.xml).

The manual also shows a few examples: http://manual.dynamicweb-cms.com/Default.aspx?ID=7592#31782 (the section "Context sensitive default values")

Best regards,
Mikkel

 

 

 

 

 
Remi Muller
Reply

That's great but i thought this was ment for ecom smart searches.

Can i add dynamic parameters to the rule values? For example manufacturers or a product custom field value.

 

 

 

ecom_smart_search_rule_parameters.png
 
Mikkel Ricky
Reply
This post has been marked as an answer

Sorry. I completely misread your question.

Now for the right answer: Currently Dynamicweb only supports dynamic values in text fields in eCom smart searches, i.e. you can not use dynamic values with Manufacturer and similar fields where you pick the value from a dropdown list. We're working on fixing this.

See attached image for a simple example of selecting "Other products", i.e. products where "ProductID is not @Product(ID)". Inside @Product(…) your can use any property on the Product object (http://developer.dynamicweb-cms.com/api8/#Dynamicweb~Dynamicweb.eCommerce.Products.Product_properties.html).

 

 

 

Screen_Shot_2013-11-14_at_16.05.58.png
Votes for this answer: 1

 

You must be logged in to post in the forum