News:

Support the VirtueMart project and become a member

Main Menu

Adding html to Short description

Started by theguy, May 01, 2014, 08:08:56 AM

Previous topic - Next topic

theguy

Hi guys,

I've managed to add the WYSIWYG to the short description by editing the product_edit_description.php file with this:
<?php echo $this->editor->display('product_s_desc',  $this->product->product_s_desc'100%;''550''75''20', array('pagebreak''readmore') ) ; ?>

I've changed the product_s_desc field in the DB to VARCHAR and set the Length/Value to 2000. Checked it and the it seems to work but with a weird bug. I get tons of BR before the text and the table I've added was deformed. Have no idea what's the source of this issue....

Site's link: http://rom.guywalderonline.com/index.php/%D7%A7%D7%98%D7%92%D7%95%D7%A8%D7%99%D7%95%D7%AA1/%D7%A9%D7%95%D7%97%D7%95%D7%AA/%D7%A9%D7%95%D7%97%D7%95%D7%AA%20%D7%91%D7%99%D7%95%D7%91/%D7%A7%D7%95%D7%98%D7%A8%2045/%D7%91%D7%A1%D7%99%D7%A1%20%D7%A7%D7%95%D7%98%D7%A8%2045%20e45-detail

It's the first green tab from the left.

Any ideas?

Thanks in advance,

Guy.