News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

WYSIWYG for product short description

Started by tomphillipspcs, July 10, 2015, 14:59:37 PM

Previous topic - Next topic

tomphillipspcs

There have been a few threads about this - but my (latest) version of virtuemart seems to differ

this is my product_edit_description file - how would I chnage this to make it WYSIWYG ?



<?php
/**
*
* Set the descriptions for a product
*
* @package   VirtueMart
* @subpackage Product
* @author RolandD
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: product_edit_description.php 8508 2014-10-22 18:57:14Z Milbo $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');?>
<fieldset>
   <legend><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_S_DESC') ?></legend>
   <textarea class="inputbox" name="product_s_desc" id="product_s_desc" cols="65" rows="3" ><?php echo $this->product->product_s_desc; ?></textarea>
</fieldset>
         
<fieldset>
   <legend><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_DESCRIPTION') ?></legend>
   <?php echo $this->editor->display('product_desc',  $this->product->product_desc, '100%;', '550', '75', '20', array('pagebreak', 'readmore') ) ; ?>
</fieldset>

<fieldset>
   <legend><?php echo vmText::_('COM_VIRTUEMART_METAINFO') ?></legend>
   <?php echo shopFunctions::renderMetaEdit($this->product); ?>
</fieldset>


Studio 42

Hi,

<?php
/**
*
* Set the descriptions for a product
*
* @package VirtueMart
* @subpackage Product
* @author RolandD
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: product_edit_description.php 8508 2014-10-22 18:57:14Z Milbo $
*/
 
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');?>

<fieldset>
<legend><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_S_DESC'?></legend>
<?php echo $this->editor->display('product_s_desc',  $this->product->product_s_desc'100%;''550''75''20', array('pagebreak''readmore') ) ; ?>
</fieldset>

<fieldset>
<legend><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_DESCRIPTION'?></legend>
<?php echo $this->editor->display('product_desc',  $this->product->product_desc'100%;''550''75''20', array('pagebreak''readmore') ) ; ?>
</fieldset>

<fieldset>
<legend><?php echo vmText::_('COM_VIRTUEMART_METAINFO'?></legend>
<?php echo shopFunctions::renderMetaEdit($this->product); ?>
</fieldset>


No garanty is given especially in multilanguage shops.

Greets,
Patrick

tomphillipspcs

Thanks - I'll give this a go tomorrow!