Forums / Templates, Stylesheets, Page Layout / Can I use custom html files to add extra info to my product descriptions?

Can I use custom html files to add extra info to my product descriptions?

Started by razzinator on 16 Mar 2013, 5:24 PM · Views: 1,145

Results 1 to 2 of 2
16 Mar 2013, 5:24 PM
#1
razzinator avatar

razzinator

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>
16 Mar 2013, 5:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Can I use custom html files to add extra info to my product descriptions?

tpl_product_info_display.php is the file that outputs the info for your product when main_page=product_info
You can add code to output the necessary content by placing it in that file where you want it to appear.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.