ahahto2007-09-02 17:10 | Is there any possibility to add same product description to many products ? I have lot of same kind of products and it is lot of work if I change descriptions. Is it possible to use variable in product desctiption or show gategory description inside of product description ? » Quick.Cart v2.x |
merci![]() 2007-09-03 08:56 | ahahto - well I'm not sure if I understand you... you would like to display in different products the same description or you would like to clone product as they are very simillar and you don't want to insert the same information many times. |
ahahto2007-09-03 18:48 | I have lot of same kind of products. All of them have same description. If I want to change the description, then I had to edit all of them (about 30 products). Is it possible to use variable in the products descption that I can use it and edit only once that variable ? |
merci![]() 2007-09-04 09:48 | ahahto - well, it is quite big modyficatiion, I will try to describe it.
$aData['sDescriptionFull'] = changeTxt( $aData['sDescriptionFull'], 'nlNds' );
add this code:
$aData['sDescriptionFull'] = str_replace( '[DESCRIPTION_1]', $tpl->tbHtml( 'products_desc.tpl', 'DESCRIPTION_1' ), $aData['sDescriptionFull'] );
Then you have to create file products_desc.tpl in templates/ directory and in that file write:
<!-- BEGIN DESCRIPTION_1 --> Now while creating or editing product you can add in full descrpition [DESCRIPTION_1] and it will be replace for 'your description' from products_desc.tpl file |
ahahto2007-09-04 21:02 | Thanks, this working fine ! But another way, is it possible to show category (short or long) description in same way ? It is easier to modify category description in admin page than products_desc.tpl. How about this ? Currently category short description is not in use anywhere, so maybe it can be use here. What you think about this ? |
merci![]() 2007-09-05 09:26 | ahahto - well it will be harder to do, and I'm not able to describe it here. |