Since it's already integrated into content pages, it would be usefull to use it in category and product ( long) description.
Plodz
Olek34
2004-12-18 13:53
Hi there, I'm quite new to the QuickCart, but just tried - and it probably works - I mean HTML Editor in Product page: WARNING - do it on your own risk: Edit admin.php and Change this: $sSelectCategory = throwCategoriesSelect( $aProduct['category'] ); $sSelectStatus = throwYesNoSelect( $aProduct['status'] ); to this: $sHtmlEditor = htmlEditor ( 'sShortDescription', '', '100', '650', $aProduct['shortDescription']) ; $lHtmlEditor = htmlEditor ( 'sFullDescription', '', '300', '650', $aProduct['fullDescription']) ; $content .= $tpl->tbHtml( 'products_form.tpl', 'FORM' );
In products_form.tpl comment out lines where textaras for short and long description were, put $sHtmlEditor in place ofshort description, and $lHtmlEditor in place od lon description.
If ypu find this way working and useful - let me know. If you find bugs let me know too!!
just add : $sHtmlEditor = htmlEditor ( 'sShortDescription', '', '100', '650', $aProduct['shortDescription']) ; $lHtmlEditor = htmlEditor ( 'sFullDescription', '', '300', '650', $aProduct['fullDescription']) ; another thing, you must change some lines in core/products-admin.php in function addProduct: second parametr for function changeTxt from Br to Nds (only for sShortDescription and sFullDescription ) the same in changeProduct
and i think it will work, but test it
Alex
2004-12-28 21:30
Please, Help me. Why script working with bugs? Help me... P.S. How I can install java-scripts. What CHMOD to this files(java)? Help.