New Zenner
- Join Date:
- Nov 2007
- Posts:
- 12
- Plugin Contributions:
- 0
Can I use custom html files to add extra info to my product descriptions?
I have a large amount of products that have tables in their descriptions and my database is reaching my 2m upload limit with more to add.
I would like to replace the tables with a single line call to include/files where I store the tables for each product.
I created a file tpl_t400.html and moved it around to different directories trying to have it found. /mytemplate/common/swtchTbl and also tried mytemplate/templates/swtchTbl with and without the swtchTbl directories in the call from the product description with following.
<?php include '/swtchtbl/t400.html.php'; // with and without the tpl_ prefix. ?>The description shows no sign of errors, but also doesn't display the table.
Need some clues please!
t400.html.php
<table class="swatchTbl"><tr> <td><img src="images/paint/p101-01.jpg" /><p>101</p></td> <td><img src="images/paint/p103-01.jpg" /><p>103</p></td> <td><img src="images/paint/p104-01.jpg" /><p>104</p></td> </tr></table>