TK8782 Posted August 9, 2007 Report Share Posted August 9, 2007 Hallo, ich habe nun schon mehrere Anläufe unternommen die Short-Description in das Datenblatt welches man sich zu jedem Artikel ausdrucken lassen kann zu integrieren. Leider bisher immer ohne Erfolg. Er zeigt mir immer nur standardmäßig die Description an, die Short Description bekomme ich aber nicht rein. Was muss ich tun! Bisher sieht mein Code in der "Print_product_info.php" so aus: <head> <title>{$PRODUCTS_NAME} / {$PRODUCTS_MODEL}</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body leftmargin="0" topmargin="0" onload="window.print()"> <!-- head --> <table border="0" width="640" cellpadding="10" cellspacing="0" bgcolor="#ffffff"> <tr> <td> <p><strong><font color="#999999" size="4" face="Arial, Helvetica, sans-serif">{$PRODUCTS_NAME}</font></strong><br /> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">ISBN: {$PRODUCTS_EAN}</font></p> </td> </tr> </table> <!-- head eof --> <table width="640" border="0"> <tr> <td width="1" valign="top"> <!-- pics --> <table width="1" border="0" cellpadding="5"> <tr> <td style="border-right: 1px solid; border-color: #cccccc" width="1" align="left" valign="top"> {if $PRODUCTS_IMAGE!=''}<img src="{$PRODUCTS_IMAGE}" alt="{$module_data.NAME}" border="0" />{/if} </td> </tr> <!-- more images --> {if $PRODUCTS_IMAGE_1 != ''} <tr> <td style="border-right: 1px solid; border-color: #cccccc;"> <img src="{$PRODUCTS_IMAGE_1}" alt="{$module_data.NAME}" border="0" /> </td> </tr> {/if} {if $PRODUCTS_IMAGE_2 != ''} <tr> <td style="border-right: 1px solid; border-color: #cccccc;"> <img src="{$PRODUCTS_IMAGE_2}" alt="{$module_data.NAME}" border="0" /> </td> </tr> {/if} {if $PRODUCTS_IMAGE_3 != ''} <tr> <td style="border-right: 1px solid; border-color: #cccccc;"> <img src="{$PRODUCTS_IMAGE_3}" alt="{$module_data.NAME}" border="0" /> </td> </tr> {/if} <!-- more images eof --> </table></td> <!-- pics eof --> <!-- desc --> <td valign="top"> <table width="100%"> <tr> <td align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">{$PRODUCTS_DESCRIPTION}<br /> <br /> {$PRODCUTS_SHORT_DESCRIPTION}<br /> <strong>{if $module_content !=''}{#options#}<br /> </strong> {foreach name=aussen item=module_data from=$module_content} {$module_data.GROUP}: {$module_data.NAME}<br /> {/foreach} <br /> <br />{/if} <strong>{#price#} <font color="#FF0000">{$PRODUCTS_PRICE}</font><br>{$PRODUCTS_TAX_INFO}{$PRODUCTS_SHIPPING_LINK}</strong> {if $PRODUCTS_VPE}<br />{$PRODUCTS_VPE}{/if} </font></td> </tr> </table> </td></tr></table> <!-- desc eof --> </body> </html> Danke für Eure Hilfe!! Link to comment Share on other sites More sharing options...
dasLetzte Posted August 10, 2007 Report Share Posted August 10, 2007 keine Ahnung ob es funktioniert, aber was passiert wenn du aus {$PRODUCTS_DESCRIPTION}[/PHP] [PHP]{$PRODUCTS_SHORT_DESCRIPTION}[/PHP] machst? Link to comment Share on other sites More sharing options...
Numerobis Posted August 11, 2007 Report Share Posted August 11, 2007 Wenn ich mich recht erinnere, passiert da nichts. Die Variable wird nicht an das template geschickt. Da muß die product_info.php angepaßt werden. $info_smarty->assign('PRODUCTS_SHORT_DESCRIPTION', stripslashes($product->data['products_short_description'])); [/PHP] Oder so ähnlich. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.