Greeting:
This is in regard to adding products and categories at will in admin, and the way functionality changed from v1.2.7 to v1.3.7.
In admin/categories.php two new variables were introduced since 1.2.7 that control the display of the add product and add category buttons.
In zc1.3.7, $zc_skip_products and $zc_skip_categories are calculated boolean flags that keep new subcategories from being created if there are products already within a category, and visa-versa. In another thread I asked why this was so, and what the problem was with the creation of new products in a category that already had subcategories. I was told that there were search and pricing issues, but that nothing much more was known.
Here I ask the questions as a main topic:
- Why was this logic introduced?
- What does it solve?
- If I disable it and show the buttons by leaving both booleans set to false will it harm anything, and why?
- If I leave it enabled and simply move a product from another subcategory into the place I desire it to be alongside other subcategories at the same level, is that ok?
- And if it is ok, but creating them there on the spot is not, then what is the difference between the two methods of getting a product to be where I want it to be?
- If its not ok, then why isn't it prevented? Shouldn't it be?
I am not looking for a workaround here. I am looking for the reasoning for adding the code in the first place. I have a highly modified implementation of ZenCart, and I don't want it to break. The inference here is that it will break if I disable the calculation of those two boolean values.
For reference, please see my posts and JetTrue's responses in this thread where she proposes I start this topic.
Please let me know if I was not clear in my intention here and I will try to clarify. I look forward to a rigorous discussion.
-Bill Wheaton
http://neasesneedlwork.com
Bookmarks