thatdamnswede 2007-02-12 11:43
How can I add [some text and html] to be displayed automaticly in the short and long product description for every new product created? Seams to me it should be fairly simple to add something: <textarea name="sDescriptionShort" cols="90" rows="5"> [some text and html] </textarea> and: <textarea name="sDescriptionFull" id="sDescriptionFull" rows="20" cols="60" style="width:600px; height:300px;" tabindex="1"> [some text and html] </textarea> I've been looking at products_form.tpl, but it seams to me that <textarea name="sDescriptionShort" cols="90" rows="5">$aData[sDescriptionShort]</textarea> can't be changed?
» Quick.Cart v2.x 2007-02-12 13:09
thatdamnswede - full description load from $sHtmlEditor and from file templates/admin/edit.tpl, check file plugins/edit/htmleditor.php too
thatdamnswede 2007-02-12 17:12
So, in effect adding: <textarea name="sDescriptionShort" cols="90" rows="5">$aData[sDescriptionShort] <b>Mått (cm)</b> xxx<br /> <b>Kvalitét</b> xxx<br /> <b>Monogram</b> xxx<br /> <b>Beskrivning</b> xxx<br /> </textarea> to products_form.tpl and <textarea name="$aHtmlConfig[sName]" id="$aHtmlConfig[sName]" rows="20" cols="60" style="width:$aHtmlConfig[iW]; height:$aHtmlConfig[iH];" tabindex="1">$aHtmlConfig[sContent] <b>Mått (cm)</b> xxx<br /> <b>Kvalitét</b> xxx<br /> <b>Monogram</b> xxx<br /> <b>Beskrivning</b> xxx<br /> </textarea> to edit.tpl won't break anything? Seems to be working. Thanks!
thatdamnswede 2007-02-12 17:21
No, actually - it doesn't work very well. The text is added to the product every time you save it. So it's easily added several times over and over if you're not careful. I don't think my client can handle that. Is there a way around that?
2007-02-13 08:01
then try change sDescriptionFull to: <textarea name="sDescriptionFull" cols="90" rows="5">$aData[sDescriptionFull] <b>Mått (cm)</b> xxx<br /> <b>Kvalitét</b> xxx<br /> <b>Monogram</b> xxx<br /> <b>Beskrivning</b> xxx<br /> </textarea>