Short description in product details

dcistudios

Avatar: dcistudios

2013-10-22 10:34

Hi everyone. I have added the shortdescription variable to the product template as i want both short and full to be displayed on the product details page. However, i am getting new line character at the end of the short description.

Short Desc
|n|
Full Desc

Any ideas how to strip the short desc from this.

Many thanks.

» Quick.Cart v4.x

boboo

Avatar: boboo

2013-10-22 12:48

Look at /actions_client/products.php
there is a "cleaning" line (parameter 'nlNds' look into trash.php how it works in function changeTxt):

$aData['sDescriptionFull'] = changeTxt$aData['sDescriptionFull'], 'nlNds' );


do the same with sDescriptionShort

boboo

dcistudios

Avatar: dcistudios

2013-10-22 13:05

I changed

$aData['sDescriptionFull'] = $aData['sDescriptionShort'];

to

$aData['sDescriptionShort'] = changeTxt( $aData['sDescriptionShort'], 'nlNds' );

and it still display the new line.

Any help will be greatly appreciated.

boboo

Avatar: boboo

2013-10-22 13:45

Where and how did you add it?
Put some code here.

boboo

dcistudios

Avatar: dcistudios

2013-10-22 14:11

actions_client/products.php

if( !empty( $aData['sTheme'] ) )
$sTheme = $aData['sTheme'];
if( !empty( $aData['sMetaKeywords'] ) )
$sKeywords = $aData['sMetaKeywords'];
if( !empty( $aData['sMetaDescription'] ) )
$sDescription = $aData['sMetaDescription'];
if( empty( $aData['sDescriptionFull'] ) )
// $aData['sDescriptionFull'] = $aData['sDescriptionShort'];
$aData['sDescriptionShort'] = changeTxt( $aData['sDescriptionShort'], 'nlNds' );
$aData['sDescriptionFull'] = changeTxt( $aData['sDescriptionFull'], 'nlNds' );

Back to top
about us | contact