HomeHome Product Discus... Product Discus...SmithCartSmithCartProduct Search Results?Product Search Results?
Previous
 
Next
New Post
6/23/2010 5:39 PM
 

In the search dropdown are you selecting a category or ALL


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/24/2010 3:10 PM
 

This problem is for ALL.

 
New Post
6/25/2010 2:19 PM
 

Bump.

 
New Post
6/27/2010 3:47 PM
 

I just applied the stored procedure change to our test portal http://www9.smith-consulting.com and did a search for "cart" and it returns the one product that has "cart" in the product description. The stored proc change provided in the thread above works maybe you didnt apply it correct.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/28/2010 8:36 AM
 

I think that you need to parenthesize the top OR condition:

IF(@Filter='All')
SELECT @SearchSQL ='INSERT INTO #TempItems (ProductID) select p.ProductID from dnn_Smith_Products p
WHERE ( p.TabModuleId = ' + CAST ( @tabModuleId AS VARCHAR(10)) + ' OR p.Share = 1 ) AND (p.modelName LIKE ''%'+ @searchText+'%'' or p.description like ''%'+ @searchText+'%''')
ELSE
SELECT @SearchSQL ='INSERT INTO #TempItems (ProductID) SELECT p.ProductID from dnn_Smith_Products p inner join '+
' dnn_Smith_CategoryProduct c ON '+
' c.ProductID=p.ProductID WHERE ( p.TabModuleId = ' + CAST ( @tabModuleId AS VARCHAR(10)) + ' OR p.Share = 1 ) AND c.CategoryID='''+@Filter+''' and (p.modelName like ''%'+ @searchText+'%'' or p.description like ''%'+ @searchText+'%'')'

 
New Post
6/28/2010 1:26 PM
 

Thanks Chris for posting the updated sproc looks like it works great but one typo i want to correct on the first highlight at the end of the statemnt the right paranthesis should be inside the single quote as below: The second highlight you have it correct.

@searchText+'%'')'


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/30/2010 10:51 AM
 

So that will automatically fix the product duplication?

 
New Post
6/30/2010 10:59 AM
 

I was not able to replicate the product duplication issue you mentioned. Have you manipulated the data in sql server directly outside of the cart screens?

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/30/2010 11:37 AM
 

No.

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartProduct Search Results?Product Search Results?