Forums / General Questions / tpl_product_info_display... overwrites

tpl_product_info_display... overwrites

Views: 490

Results 1 to 2 of 2
8 May 2014, 10:07 PM
#1
benwpr avatar

benwpr

New Zenner

Join Date:
Nov 2013
Location:
Canada
Posts:
5
Plugin Contributions:
0

tpl_product_info_display... overwrites

Not sure if this questions fits in the categorie, so feel free to move it.

I am a zencart dev, helping people installing modules, setting them up, making custom module etc...

Its something that botheres me on zencart script. The file tpl_product_info_display always needs to be overwritten an almost any module I install when product changes need to be added. I hate merging. I do! Because layout mostly messed up, accidentialy overwrites (I do take backups...)

Is there a way to write clean code that would not affect tpl_product_info_display, and we would be able to add like content to the product page.

I think its an easy think to create myself... but again, I install alot of thrid party plugins, so if there is something out of the box that is already be available I would be happy.

I can think of dirty way... like a folder, a main php include, and than it that main php files the includes for the other parts. It sound really dirty although for me.

8 May 2014, 11:58 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: tpl_product_info_display... overwrites

That's what the observer/notifier system is for, though there aren't many (if any) hooks in tpl_product_info_display.php. If you want to make a version that you can easily customize, you could add a bunch of hooks to it and modify other mod files to use those... a bunch of work up front, but your future work would be eased.