Reset Category Id count in for Catalog
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 4
- Joined: 15 Jan 2017, 04:28
Reset Category Id count in for Catalog
Is there a way to reset count of category ID's in catalog? I had initial catalog tree with the root category starting with 1. I deleted the tree in expert admin panel and started creating a new one, however the category id's shifted. The root now starts with 15. Deleted all categories again, ran "index/rebuild" and "admin/cache" jobs, created new list of categories, but this did not help.
Running symfony "aimeos/aimeos-core": "~2016.10"
symfony 3.1.8
Running symfony "aimeos/aimeos-core": "~2016.10"
symfony 3.1.8
Re: Reset Category Id count in for Catalog
The old data is still in the cache. You have to execute on the command line:
The admin/cache job controller removes only expired cache entries.
Code: Select all
php bin/console aimeos:cache
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 4
- Joined: 15 Jan 2017, 04:28
Re: Reset Category Id count in for Catalog
Deleted entire category tree through admin back end, used the suggested command, refreshed the admin back end in browser, added new root node, id is incremented again. Starts with 17 now. I guess I'll live with it. Thanks!
Re: Reset Category Id count in for Catalog
That's the best way. Otherwise, you would have to reset the MySQL autoinrement value for the mshop_catalog table.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star