Jump to content

I need to echo a table from $product.description_short


Recommended Posts

Hello,
What i did was this:
Insert a table into AdminProducts.php short description textarea. This echoes the table in the editor every time i want to add a description:


<textarea class="rte" cols="100" rows="20" id="description_short_'.$language['id_lang'].'" name="description_short_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_short', $language['id_lang'])), ENT_COMPAT, 'UTF-8')."01020304050607080910".'</textarea>
';



http://i67.photobucket.com/albums/h289/sfpetru/table1.png

The .css:

table.mceItemTable {border-collapse:collapse;}
.mceItemTable tr td {border:1px solid #000;width:70px;height:20px;}



Code that outputs the description, from produt-list.tpl:

{$product.description_short}


The result on product-list page: http://i67.photobucket.com/albums/h289/sfpetru/table_where_is_it.png

As you can see in the first pic, there's a definite border there, but checking the html in the editor i get

{$product.description_short}


and that prints some borders, but i'm unable to collapse them:
http://i67.photobucket.com/albums/h289/sfpetru/table_no_collapse.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...