Slogan LiveZilla Live Help

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!

 

 

Comments

avatar Thanks
0
 
 
thanks for the tip - wored great!
You do have to change the database field to "text" though, or it doesn't save more than 256 characters
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar David
0
 
 
I've made this mod and it works great (VirtueMart 1.1.4)

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.
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
button_logo_portfolio
button_quote
button_testimonials

Subscribe Tutorials

Enter your email address:

Paypal Donation

Enter Amount:

Subscribe Joomla Tutorials Newsletter

Name:

Email:


Enter your email address: