Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreProduct Search ModuleProduct Search Module
Previous
 
Next
New Post
12/22/2009 1:37 AM
 

Hi Gilles,

I am using your module for some e commerce applications with some source modifications. I want to add a search functionality to a store. I know this is in your long to do list. I will do this modification my self until then. But I appricate If you can advice me how and where can do this. I need to show product list as a normal product list (Like featured , new products) as a search result. I think it is possible to use current source with some modifications.

Thank You,

 

 
New Post
12/22/2009 11:28 AM
 

Hi,

The Store module already use the DNN search engine, but the product list is not rendered inside the Store Catalog. To render search controls inside the Store, you should add a new token like [SEARCH], the problem is to choose where you want to add it. You could add it inside Catalog.ascx.cs if you want to create a new panel (div) above or below the product lists (category products, new products, ...). This is my first choice. You could also add it inside ProductList.ascx.cs and render his controls in the category product list only. Whatever your choice, you will need to address its action (search for the corresponding products) in Catalog.ascx.cs because it's in this control than the product list is created. The {SEARCH] token should be made of several controls (a literal, a text box and a link button), look at the {SORTBY] token inside ProdctList.ascx.cs for a sample. Give me more details about your choice.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
1/4/2010 2:04 AM
 

Hi Gilles,

Hope you are well. After a break I am going to continue the product search module. Thank you very much for your advices what you have given so far.

I like your first choice. Then I can add it to any where and any page in any portal.

I need a search textbox , dropdown like in sort function to choose searching option (By category name, by model name etc..), and a link button to search.

Please can you tell me where and how can I do this?

Is there any refference code to copy and modify. Can I use new products or featured products code by modifying this.

Is it possible to use the 'SORTBY' function with a text box to search?

Please help me to solve this. Thank you for your great support.

 
New Post
1/5/2010 8:39 PM
 

Hi,

Thanks I'm fine and I hope you are well too. If you choose to implement my suggestion, you have to modify several parts in the module. It's not the simple way! ;-)

First, look at the Catalog.ascx.cs file. Here you have to create a new token like [SEARCHRESULT], the code is close the same for each product lists ([NEW], [FEATURED], [POPULAR] and [CATEGORY]) only the product array to display is different. All of them use the same ProductList control, you should be able to use it too because this control contains every needed properties to display any kind of product list. You have to add a new type in the ProductListTypes enum and to add you own code to retreive products in the LoadProductList method. The Catalog control use the CatalogNavigation.cs class to retreive parameters transmited by your [SEARCH] token (see below). You have to add your own parameters to this class like SearchColumn and SearchValue.

Now than the Catalog control is ready to manage your search request, you have to create the [SEARCH] token in the ProductList.ascx.cs class. The code is similar to the [SORTBY] token in the processToken function. Here required controls to display in the category product list are created "on the fly". It should be easy to understand because this part is full of comments! :-) Finaly, you have to manage your button event like the btnSortDir_Click and ddlSortBy_SelectedIndexChanged. In your case you have to manage just one event the 'Go' or 'Search' button event click. Retreive the value from your dropdown list (search column) and the text entered by the user in your textbox (search value), then fill the moduleNav properties (SearchColumn and SearchValue defined in CatalogNavigation.cs) and redirect the the same page using Response.Redirect(moduleNav.GetNavigationUrl()).

Just one stupid question, what is your first name Y or Ma? :-)

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
1/6/2010 12:12 AM
 

Thanks Gilles,

I will try this and let you know the result.
Answer for your question about my name.

Actually Not both. Yma is my Nick name. The meaning of 'Yma' is Son of Sakka in my language. Sakka is a God who can do any thing and he can control the world.If there is an problem for any good person he can feel it and he is helping to resolve it. How he knows about people's problem is interesting.

Sakka is just a concept. Son has only the father's power. :-)

But I like this name.

End of the language lession and back to the C# language. :-)

One more thing.Please can you tell me how to get textbox value in the button click event.It is not working for normal methods. Please can you advice me on this.

Tnx,

Y Ma

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreProduct Search ModuleProduct Search Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out