One code base for repeating Product info box in opencart site.
Posted: Sun Oct 15, 2017 10:48 pm
Hello,
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?
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?