HTML editor to category and product description

Plodz

No avatar

2004-10-22 16:11

Since it's already integrated into content pages, it would be usefull to use it in category and product ( long) description.

Plodz

Olek34

No avatar

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!!

Greets
Olek
aleksanderlech@wp.pl

wewior (OpenSolution)

Avatar: wewior

2004-12-20 15:39

Olek34 why you want to change:
$sSelectCategory = throwCategoriesSelect( $aProduct['category'] );
$sSelectStatus = throwYesNoSelect( $aProduct['status'] );
to:
$sHtmlEditor = htmlEditor ( 'sShortDescription', '', '100', '650', $aProduct['shortDescription']) ;
$lHtmlEditor = htmlEditor ( 'sFullDescription', '', '300', '650', $aProduct['fullDescription']) ;
$content .= $tpl->tbHtml( 'products_form.tpl', 'FORM' );

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

No avatar

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.

http://zhitomir.com.ua/shop/admin.php

Header

No avatar

2005-04-05 14:21

Adding HTML editor to the 3.0 version:

1. Add lines to the actions_admin/products.php:

$sHtmlEditor = htmlEditor ( 'sShortDescription', '', '100', '650', $aProduct['shortDescription']) ;
$lHtmlEditor = htmlEditor ( 'sFullDescription', '', '300', '650', $aProduct['fullDescription']) ;

2. Changing Br to Nds

3. Adding $sHtmlEditor & $lHtmlEditor to the template.

STILL ERROR, WHAT IS WRONG???

Notice: Undefined index: shortDescription in /home/html/qc/actions_admin/products.php on line 67

Notice: Undefined index: fullDescription in /home/html/qc/actions_admin/products.php on line 68

Header

No avatar

2005-04-06 08:22

It works, but that changes exactly need to make? Please somebody who know answer. I think this one is interessting for all of us :).

islander

Avatar: islander

2005-07-05 14:02

Has anyone discovered a solution to this?

I keep comeing up with the same error no matter what I do.

This mod should be a default to the program.

Back to top
about us | contact