News:

Looking for documentation? Take a look on our wiki

Main Menu

edit and use "short description" as WYSIWYG

Started by Sennrox09, November 13, 2014, 13:38:55 PM

Previous topic - Next topic

Sennrox09

I try to adjust the short description of a product ( product overview ).
I have tried to adjust the code to display the long product description instead of the short, but no results.
changed the Product_edit_description.php to set a new editor, the editor shows but it will not show in the product ( blank ).
Adjusted the database field of "product_s_desc" to set the value higher, doesnt make a difference.
Changed "products.php" and "products_horizon.php" to set the value higher .
Sometimes it only shows the first sentence, and then its blank.

I really need to show more info and styles.
Can someone please help me with this adjustment ?
website is : http://www.bandenservice-lelystad.nl/miglia

With kind regards,
Kevin de Jong
Netherlands


jjk

I'm not shure what kind of layout you want to achieve. Looking at your link, I think placing options like
QuoteKleur: Dark Antraciet
Maten: 8.0x18 / 8.5x19
9.0x19 / 10.0x22
18 inch vanaf € 144,50
19 inch vanaf € 174,50
22 inch op aanvraag
into the short descriptions or as text into the full description doesn't make a lot of sense. Instead such information should be available as selectable attributes or child products from a dropdown list. Maybe you should install for example VirtueMart2.9.9.4_Joomla_2.5.27-Stable-Full_Package.zip from here:
http://dev.virtuemart.net/projects/virtuemart/files
and experiment a little bit with the sample products fo find a configuration which fits your requirements.
For developing your shop, you can install Joomla/VirtueMart on your own PC if you first install for example xampp for Windows from apachefriends.org

A possible reason that your attempts to change your current layout didn't work may be your S5 template loads a lot of extra javascript and css and perhaps overrides some VirtueMart files. You can ask the template provider if it has been tested with the VM version you are using. Often, commercial shop templates are not up to date with newer VirtueMart versions. If you still want to 'hack' the layout, I would first try with the Beez template first.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

duchaidlu

Edit file in: components/com_virtuemart/views/product/tmpl/product_edit_description.php
chang:
   <textarea class="inputbox" name="product_s_desc" id="product_s_desc" cols="65" rows="3" ><?php echo $this->product->product_s_desc?></textarea>
to
<?php echo $this->editor->display('product_s_desc',  $this->product->product_s_desc'100%;''550''75''20', array('pagebreak''readmore') ) ; ?>