I'm working in a project where my customer wants to change the product info box. With "product info box" I mean the box with product thumb, name and price as it is shown in the overviews of categories, latest products and related products. This box although it has always the same code is not put in a separate function or template, but it is part of almost every template page. Changing this box means editing every template page and possibly change all the controllers associated with it. I wonder if there is not a different solution where the box code is put in a different template (think of smarty). Does someone have experience with this?
They use 'global settings' for certain layouts, to have all sections, like grid-view,
list-view, toolbars, form-action, e.t.c., then looking fully identical, as set in Admin.
But I could not tell you, wich themes are using such 'common' ways of doing things,
I found it in the famous Merkent Bootstrap Theme, but this is only for Version v.1.5.6.x.
Just to mention this !
global_module_settings_opencart.jpg (147.03 KiB) Viewed 529 times
For Sale: Top URL's, including OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: email@example.com
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
I think there is allot of double code for this "product box". A separate template for this box in combination with a small adjustment in the controllers would make life easier and decrease the code lines. Your post does something like that. I wonder if this should not be a "feature of the next generation "open-cart". I'm not aware of any extension doing such a thing.
Some themes may have a standard "product box" template file in their code, so you might look around and ask some theme developers. It's certainly doable yourself, but you have to edit all the template files that load a list of products, and change them so they all load from the same "master" template file.
Users browsing this forum: No registered users and 9 guests