Enable JFactory / EDITOR in Short Description

13.05.2013 17:45
#1
Mercieca
Joomshopping forum user no avatar
Name: Jo
16.04.2013
Posts: 3
Quote
Enable JFactory / EDITOR in Short Description

Hello, the backend product page contains a short description which is just a textarea box unlike the Description field.

I accessed the description.php file located in :

administrator/com_jshopping/views/product_edit/tmpl/ where I created this entry:

<td class="key">
<?php echo _JSHOP_SHORT_DESCRIPTION;?>
</td>
<td>
<?php
$editor = JFactory::getEditor();
print $editor->display('short_description'.$lang->id, $row->$short_description , '100%', '350', '75', '20' ) ;
?>

</td>

The problem I have is that everytime I save the page, all text disappears.

Do you have any ideas and steps on how to enable such feature? Basically I need that so to add shortcodes for mediaplayers.

Thanks

 
21.08.2019 13:03
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25857
Quote
Aw: Enable JFactory / EDITOR in Short Description

Change code
administrator\components\com_jshopping\models\products.php
row 216
$post['short_description_'.$lang->language] = $input->get('short_description_'.$lang->language, '', 'RAW');
change to
$post['short_description_'.$lang->language] = $input->get('short_description'.$lang->id, '', 'RAW');


Letzte Änderung: 21.08.2019 13:05
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.