My first ZenCart tip

tpl_product_info_display

Now, I have my first description appearing at the top of the page, and the second at the bottom - they are split by the “Buy Now” area. You need to basically copy the regular “products_description section and place it wherever you want it to appear in your layout. Don’t forget the append it with “2″. So, for example, you copy this section:

<?php // bof Product description
if ($products_description != '') { ?>
<div id="productDescription"><?php echo stripslashes($products_description); ?></div>
<?php } // eof Product description
?>

..and change it to this:

<?php // bof Product description
if ($products_description2 != '') { ?>
<div id="productDescription2"><?php echo stripslashes($products_description2); ?></div>
<?php } // eof Product description
?>

…and place that sucker wherever you want it to appear.


Page 1 2 3 4 5 6 7 8 9 10

Comments

Melvin says...
1

I can’t begin to tell you how wonderful this is. I’ve searched the Zen site over and over and nothing could touch what I needed. THANKS…. BUT…. The admin collect_info works, the preview_info works, but it’s not writing the input to the database. I opend php MyAdmin and verified the fields are correct. Also I verified the new records are writing to the database but the new fileds are blank. Additionally Both New records and Updated records are not writing to the new fields, AND I’m not getting any error messages. If I could beg your help, Can you point me to areas to look for possible mistakes or errors? I’m so close I can smell it…

Thanks a MILLION…

AdamN says...
2

You are a god(dess)! this has saved me so much hassle writing html code for mulitple descriptions in product listings/pages, the only change is Ive removed the original products description from the product page, so now my listings show a short info piece - the original product description section, and my product page just shows the secondary description - so much easier than writing class code into each description.

Many many thanks for the contrib.
Adam.

Trackbacks & Pingbacks

Leave a Reply