search in the new product field nop 4.10

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi,

I added a new field in the product table. Insert and update works.
Now I would like to search also in this field (search box). For this I changed the SP ProductLoadAllPaged.
But I can not search over the field.
Has something changed in version 4.10?

Best regards
5 years ago
ksprovis.net wrote:
...Has something changed in version 4.10? ...

Did it work before when you made the same change in a prior version?

Did you change SP ProductLoadAllPaged to accept additional parameter(s)?
Share some code if you need help troubleshooting.
5 years ago
New York wrote:
...Has something changed in version 4.10? ...
Did it work before when you made the same change in a prior version?

Did you change SP ProductLoadAllPaged to accept additional parameter(s)?
Share some code if you need help troubleshooting.



yes in an early version of nopCommerce it worked.


    --SuchBegriff
    SET @Keywords = REPLACE(@Keywords, '-', '')
    SET @Keywords = REPLACE(@Keywords, ' ', '')
    SET @sql = @sql + '
    UNION
    SELECT p.Id
    FROM Product p with (NOLOCK)
    WHERE '
    IF @UseFullTextSearch = 1
      SET @sql = @sql + 'CONTAINS(p.[SuchBegriff], @Keywords) '
    ELSE
      SET @sql = @sql + 'PATINDEX(@Keywords, p.[SuchBegriff]) > 0 '
5 years ago
Have you manually tested the stored procedure?
Do you know for sure that your new parameter is being passed in?

Can you Trace with SQL Server Profiler, or can you add some debugging code to the sp to check the final SQL query text?
5 years ago
New York wrote:
Have you manually tested the stored procedure?
Do you know for sure that your new parameter is being passed in?

Can you Trace with SQL Server Profiler, or can you add some debugging code to the sp to check the final SQL query text?



where do I have to pass the new parameter?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.