Adding rich text and images to the short description
I needed to add symbols to the browse page without exposing the Detailed Description which is long and tedious. The symbols were for a set of watches and were things like waterproof, shockproof etc.
A one line change gives you an editor for the short description.
In Virtuemart ,in /html/product.product_form.php around line 294 find;
<textarea class="inputbox" name="product_s_desc" id="short_desc" cols="55" rows="16" >
<?php echo $db->sf("product_s_desc"); ?></textarea>
and replace it with:
<?php editorArea( 'editor1', htmlspecialchars( $db->sf("product_s_desc"), ENT_QUOTES ),
'product_s_desc', '550', '300', '55', '25' ) ?>
When you enter a new product you will see the editor in the space of the Short Desc. This allows quick image insertion - dependent on the editor you use of course!
Â
Â





joomlaservices
joomlaservices
394295112
joomlaservices
+91-9853790816
joomlaservices

Comments
You do have to change the database field to "text" though, or it doesn't save more than 256 characters
But as a novice, how do you change the database field to "text"? That's the bit I haven't managed to figure out.
Thanks.