hallo all, i read this topic and after read 2.2 features from official site: (Added category and manufacturer templates.)
I don't find possibilities, how was on 1.6, to select product il line templates for a specific category!! what i have to do?
2.2 contains only one category template which allows customers to choose preferred view. If you want to display inline only, then create a new category template (modify existing one) and add an appropriate record into [CategoryTemplate] table.
I understand that in the database there is a CategoryTemplates table and we can insert a new "View" to be used with the existing model ... I've even considered putting that view in a plugin.. but what is the "right" way to extend the way that categories are displayed?
I can edit CategoryController, modify the model to include new fields etc... and create a new View in Views (then point to the new view with category template.
I guess I'm curious which is the best way... Ideally I'd be able to make a plugin that overrides the normal category controller ... should I attempt to have a plugin's routing override?
I'm concerned about new updates after I've started customizing code. trying to write everything as plugin so that new versions compatibility issues are minimized
I've merged the two product templates into one, that handles both single and multiple variants. So moving forward all products will use my new template.
What's the right way to "hide" or "delete" the one I don't want so that all new products default to my new template?
(I was able to delete it from the database table, but I did not know if there was a way to do it thru the interface.)
Currently, the only way to modify a product template record is by modifying the entry in the database table ProductTemplate. Instead of deleting the entry you don't want, you can adjust the display orders so the one you want to be the default choice has a lower value (will be displayed first in the list).
.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.