Developer forum

Forum » Development » Search for products

Search for products


Reply

Hi,


 


I need to know if it is possible to create a search in the front-end that will search within the eCom custom fields?


 


Also if someone could tell me how extensive can the search be! Can we search for manufactureus, for example, in any fields related to them?


 


Best Regards,


Nuno


Replies

 
Reply
First of all, read, please, this document about search in eCom: http://documentation.dynamicweb.dk/Admin/Public/Download.aspx?File=Files%2fFiler%2fDocumentation+portal%2fDynamicweb+CMS%2fDocumentation%2fDevelopment%2f(en-US)_Parameter_based_search__Dynamicweb_eCommerce.pdf

But anyway, it contains nothing about search in custom fields, let me describe it a bit here.

So, if you want to search in CUSTOM product fields you need to pass their system names (with "ProductCustomField_" prefix) and corresponding values. For example if you want to search for "value1" in a custom field "field1" your query string will be: "ProductCustomField_field1=value1".



This is the list of standard fields, where eCom executes search:



ProductDefaultShopID

ProductNumber

ProductName

ProductShortDescription

ProductLongDescription

ProductImageSmall

ProductImageMedium

ProductImageLarge

ProductLink1

ProductLink2

ProductPrice

ProductStock

ProductStockGroupID

ProductWeight

ProductVolume

ProductVatGrpID

ProductManufacturerID

ProductActive

ProductPeriodID

ProductCreated

ProductUpdated

ProductCustomFieldsXml

ProductType

ProductPriceType

ProductPriceCounter

ProductVariantCounter

ProductVariantProdCounter

ProductVariantGroupCounter

ProductRelatedCounter

ProductUnitCounter

ProductDefaultUnitID

ProductDefaultVariantComboID

ProductPriceMatrixUnit

ProductPriceMatrixVariant

ProductPriceMatrixPeriod

ProductPriceMatrixMultiplePrices

ProductPriceMatrixQuantitySpecification



Vitaly.
 
Reply

Hi Vitaly,


 


Very helpful, thank you.


 


Best Regards,


Nuno

 
Reply

Hi Vitaly,

 

I've just tried the thing you described above, but it is still showing all the products of the group.

 

http://www.welldana.com/default.aspx?ID=1408&eComSearch=1&ProductCustomField_DealerPools=True

 

There should only be the one product called Duo-Line ApS in the search result, being the only one with the custom field "DealerPools", checked in the eCom backend.

 

What do I do wrong??

 
Reply
I know it's a long time ago, but what is the solutions for this?
 
Reply
Is it something like this you need:
http://engage.dynamicweb-cms.com/eCommerce-390.aspx?ProductID=PROD154
 
Reply
I can't get it to work either. I am trying to get alle products which has "yes" as value in a custom product field named Campaign, here is how i am trying to do the search:

/default.aspx?id=30&ProductCustomField_Campaign=yes

What am i doing wrong ?

 

You must be logged in to post in the forum