Zen Follower
- Join Date:
- Nov 2006
- Posts:
- 102
- Plugin Contributions:
- 0
Using a Smart Numbering System in lieu of the default products_id
I have a strong understanding of relational databases. I would like to use a smart numbering system for my products (i.e. each digit in a product number nnnnnnnn has meaning that ultimately describes the product/SKU).
I know that I can go directly into myPHPadmin and change products_id to the new number in zen_products, but where else is the products_id used? Is there an "easy" way to update every instance at once?
To better explain, I want to change my products_id "1" to be “12345678.” I can update it manually in the DB in the zen_products table, but where else will I need to update it? (What other tables?)
I have never used EasyPopulate, but I plan on using something like it (or develop it myself) to do a mass upload of products and the smart numbers. Any advice?
I guess the other question is…what updates are made to which tables when a new product is added in Zen Cart Admin? I was thinking that if I could find the update queries (where are they?), I could simply keep the original products_id values and map them to the smart numbers in any unused field in the zen_products table.
Thanks for any help you may be able to provide.
-David