PanzerkampfPL Posted 15 hours ago Share Posted 15 hours ago Hi, I’m trying to manually move a product to new categories and set a new main category directly in the database of PrestaShop 1.7.6.0. Here’s what I’ve done: In the ps_category_product table: Added new category assignments. Removed old category assignments. In the ps_product and ps_product_shop tables: Updated the id_category_default field to the new main category. Cleared the cache Problem: In BackOffice, the old category is still displayed as the main category, even though id_category_default points to the new category. The product’s URL also does not update according to the new main category. Are there any other places in the database I need to update to ensure the change in the main category and URL is correctly reflected in both BackOffice and the front end? Thanks in advance for your help! 😊 Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted 15 hours ago Share Posted 15 hours ago id_category_default only points to which one of the categories is the default one Link to comment Share on other sites More sharing options...
Daresh Posted 8 hours ago Share Posted 8 hours ago Changing id_category_default in ps_product and ps_product_shop should be enough here, there is no other place where this information is stored. 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