bartman Posted May 22, 2010 Share Posted May 22, 2010 have moved a couple of products to a different cat, but when i run a search for these products using the quick search box with ajax switched on it still shows them in the old categorys and not the new ones.have emptied the /tools/smarty/compile directory but this mad nop differnceAny on have any cluesthanks chris Link to comment Share on other sites More sharing options...
rocky Posted May 23, 2010 Share Posted May 23, 2010 You need to go to Preferences > Search and click "Rebuild the entire index". Link to comment Share on other sites More sharing options...
bartman Posted May 23, 2010 Author Share Posted May 23, 2010 Just tried that and the results remain the same, is their a manual way to do a rebuildpath still remains as followsParty Glow > Glow Cups and Glow Glasses > Lumica Blue Chemical Glow Cupwhen the product is not in that category tree but inGlow Barware > Lumica Blue Chemical Glow Cupthe party glow and glow cups category are both disabled and the blue glow cups has been moved to the glow barware categoryregardsChris Link to comment Share on other sites More sharing options...
bartman Posted May 23, 2010 Author Share Posted May 23, 2010 just switched ajax search off and the problem remains the same with normal search results regardsChris Link to comment Share on other sites More sharing options...
BillyD Posted May 23, 2010 Share Posted May 23, 2010 Barman,I had to go into the database and truncate/empty the tables search_index and search_word then go to the rebuild indexes to Preferences > Search and click “Rebuild the entire index”. I still had stuff in these tables relating to ipods and laptops even though I had rebuilt the index several times. Not sure if this is because I have done a fair amount of customisation. You could set up another default install and trial? Link to comment Share on other sites More sharing options...
BillyD Posted May 23, 2010 Share Posted May 23, 2010 worth checking your category_product table too Link to comment Share on other sites More sharing options...
bartman Posted May 23, 2010 Author Share Posted May 23, 2010 looks like a database problem, and could be a bug as wellbasically the id_category_default in the ps_product was still pointing to the original category even though the product had been moved to a different categoryregardschris Link to comment Share on other sites More sharing options...
bartman Posted May 23, 2010 Author Share Posted May 23, 2010 did some checking and it looks like you can cause some problems when moving products about in your shopbasically ps_category_product shows the product in the correct categoryI would imagine this record is added to the database when I moved the product in to a different categorybut id_category_default in ps_product still shows the original category. I can understand that this would be the correct procedure if you placing the product in more than one categorybut I think it is incorrect if you are moving the product to a different category and the product will only appear in one categoryid_category_default in ps_product should be updated and now show the new category idregardsChris Link to comment Share on other sites More sharing options...
rocky Posted May 23, 2010 Share Posted May 23, 2010 This is expected behaviour. You must remember to change the default category to the new category whenever you move a product. The reason PrestaShop doesn't do this automatically is that it is possible to put the product in multiple categories, so PrestaShop wouldn't know which category to make the default. I agree that it is wrong that PrestaShop allows you to set the default category to a category the product isn't in. Perhaps PrestaShop should warn you when this happens or automatically change the default category to the first ticked category. You could post that in the bug tracker if you want it fixed in a future version. Link to comment Share on other sites More sharing options...
bartman Posted May 24, 2010 Author Share Posted May 24, 2010 raised this in the bug trackermany thanks for everyones helpregardsChris Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now