[Skip to main content](#vessel-content)

#   Can I show the product descriptions on item list?

##

- **[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")**
- [![arydiel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7302-arydiel "View arydiel's Profile") Topic Author
- [ Offline](/forum/user/7302-arydiel)

Less More

- Posts: 8
- Thank you received: 1
-
-

14 years 5 months ago [\#48913](#48913) by [arydiel](/forum/user/7302-arydiel "View arydiel's Profile")  *[Can I show the product descriptions on item list?](/forum/4-how-to/48913-can-i-show-the-product-descriptions-on-item-list#48913 "Hi all,  I was just told that we have to find a way to show each product's description (or dimensions at the very least) on the product list that shows when you click on a category. I'm not sure what we call this page, but here is the one I'm talking about:   50.116.92.232/~oldhouse/index.php?option...e=mantels&amp;Itemid=137  We want to include the product description directly under the product title for each item so viewers do not have to click on every single product to quickly see the size. Can this be done, and if so, does anyone know what options to choose or what code I need to edit?  I really appreciate any help that can be offered.  Thanks!")* was created by *[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")*

Hi all,

I was just told that we have to find a way to show each product's description (or dimensions at the very least) on the product list that shows when you click on a category. I'm not sure what we call this page, but here is the one I'm talking about: [ 50.116.92.232/~oldhouse/index.php?option...e=mantels&amp;Itemid=137](http://50.116.92.232/~oldhouse/index.php?option=com_hikashop&ctrl=category&task=listing&cid=141&name=mantels&Itemid=137)

We want to include the product description directly under the product title for each item so viewers do not have to click on every single product to quickly see the size. Can this be done, and if so, does anyone know what options to choose or what code I need to edit?

I really appreciate any help that can be offered.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ4OTEzLWNhbi1pLXNob3ctdGhlLXByb2R1Y3QtZGVzY3JpcHRpb25zLW9uLWl0ZW0tbGlzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 5 months ago [\#48959](#48959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Can I show the product descriptions on item list?](/forum/4-how-to/48913-can-i-show-the-product-descriptions-on-item-list#48959 "Hi all,  I was just told that we have to find a way to show each product's description (or dimensions at the very least) on the product list that shows when you click on a category. I'm not sure what we call this page, but here is the one I'm talking about:   50.116.92.232/~oldhouse/index.php?option...e=mantels&amp;Itemid=137  We want to include the product description directly under the product title for each item so viewers do not have to click on every single product to quickly see the size. Can this be done, and if so, does anyone know what options to choose or what code I need to edit?  I really appreciate any help that can be offered.  Thanks!")*

Hi,

The simplest option is to change the item box layout option of the module with the id 129 via the menu Display-&gt;Content modules to "image and description".
However, that will also change the layout of each item a bit.
If you don't want to change the layout, you can edit the file "listing_img_title" of the view "product" via the menu Display-&gt;Views and just add a line of code to display the description:
&lt;?php echo $this-&gt;row-&gt;product_description; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ4OTEzLWNhbi1pLXNob3ctdGhlLXByb2R1Y3QtZGVzY3JpcHRpb25zLW9uLWl0ZW0tbGlzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")**
- [![arydiel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7302-arydiel "View arydiel's Profile") Topic Author
- [ Offline](/forum/user/7302-arydiel)

Less More

- Posts: 8
- Thank you received: 1
-
-

14 years 5 months ago [\#49005](#49005) by [arydiel](/forum/user/7302-arydiel "View arydiel's Profile")  Replied by *[arydiel](/forum/user/7302-arydiel "View arydiel's Profile")* on topic *[Re: Can I show the product descriptions on item list?](/forum/4-how-to/48913-can-i-show-the-product-descriptions-on-item-list#49005 "Hi all,  I was just told that we have to find a way to show each product's description (or dimensions at the very least) on the product list that shows when you click on a category. I'm not sure what we call this page, but here is the one I'm talking about:   50.116.92.232/~oldhouse/index.php?option...e=mantels&amp;Itemid=137  We want to include the product description directly under the product title for each item so viewers do not have to click on every single product to quickly see the size. Can this be done, and if so, does anyone know what options to choose or what code I need to edit?  I really appreciate any help that can be offered.  Thanks!")*

Thanks for your help, Nicolas. Option one works okay, but I will probably have to go with a 2-column layout in that case because of the image being to the left of the title and description.
Ideally I'd like to get your second suggestion to work so I can have the image at the top, then the title and then the description underneath, but it's giving me problems.

Can you confirm that I am a) in the right view; and b) where I should insert the line if I want it to appear just under the title? I have pasted the line of code you suggested in several different spots within the code and I get no change whatsoever -- this makes me think I'm either in the wrong view, inserting the code in the wrong place, or maybe the field name we're calling is incorrect?

Display -&gt; Views -&gt; Front End - Product - listing-img-title

Original Code:

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 1.5.7
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;?php
$link = hikashop_completeLink('product&amp;task=show&amp;cid='.$this-&gt;row-&gt;product_id.'&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway);
if($this-&gt;config-&gt;get('thumbnail')){ ?&gt;
&lt;!-- PRODUCT IMG --&gt;
&lt;div style="height:&lt;?php echo $this-&gt;image-&gt;main_thumbnail_y;?&gt;px;text-align:center;clear:both;" class="hikashop_product_image"&gt;
&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;a href="&lt;?php echo $link;?&gt;" title="&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;"&gt;
&lt;?php }
echo $this-&gt;image-&gt;display(@$this-&gt;row-&gt;file_path,false,$this-&gt;escape($this-&gt;row-&gt;file_name), '' , '' , $this-&gt;image-&gt;main_thumbnail_x, $this-&gt;image-&gt;main_thumbnail_y);
if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/div&gt;
&lt;!-- EO PRODUCT IMG --&gt;
&lt;!-- PRODUCT PRICE --&gt;
&lt;?php
}
if($this-&gt;params-&gt;get('show_price')){
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
?&gt;
&lt;!-- EO PRODUCT PRICE --&gt;
&lt;!-- PRODUCT NAME --&gt;
&lt;span class="hikashop_product_name"&gt;
&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;a href="&lt;?php echo $link;?&gt;"&gt;
&lt;?php }
echo $this-&gt;row-&gt;product_name;
if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;
&lt;/span&gt;
&lt;!-- EO PRODUCT NAME --&gt;
&lt;!-- ADD TO CART BUTTON AREA --&gt;
&lt;?php
if($this-&gt;params-&gt;get('add_to_cart')){
$this-&gt;setLayout('add_to_cart_listing');
echo $this-&gt;loadTemplate();
}?&gt;
&lt;!-- EO ADD TO CART BUTTON AREA --&gt;
&lt;?php
if(JRequest::getVar('hikashop_front_end_main',0) &amp;&amp; JRequest::getVar('task')=='listing' &amp;&amp; $this-&gt;params-&gt;get('show_compare')) { ?&gt;
&lt;br/&gt;&lt;?php
if( $this-&gt;params-&gt;get('show_compare') == 1 ) {
?&gt;
&lt;a class="hikashop_compare_button" href="&lt;?php echo $link;?&gt;" onclick="setToCompareList(&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;,'&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;',this); return false;"&gt;&lt;?php echo JText::_('ADD_TO_COMPARE_LIST'); ?&gt;&lt;/a&gt;
&lt;?php } else { ?&gt;
&lt;input type="checkbox" class="hikashop_compare_checkbox" id="hikashop_listing_chk_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;" onchange="setToCompareList(&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;,'&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;',this);"&gt;&lt;label for="hikashop_listing_chk_&lt;?php echo $this-&gt;row-&gt;product_id;?&gt;"&gt;&lt;?php echo JText::_('ADD_TO_COMPARE_LIST'); ?&gt;&lt;/label&gt;
&lt;?php }
} ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ4OTEzLWNhbi1pLXNob3ctdGhlLXByb2R1Y3QtZGVzY3JpcHRpb25zLW9uLWl0ZW0tbGlzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 5 months ago [\#49088](#49088) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Can I show the product descriptions on item list?](/forum/4-how-to/48913-can-i-show-the-product-descriptions-on-item-list#49088 "Hi all,  I was just told that we have to find a way to show each product's description (or dimensions at the very least) on the product list that shows when you click on a category. I'm not sure what we call this page, but here is the one I'm talking about:   50.116.92.232/~oldhouse/index.php?option...e=mantels&amp;Itemid=137  We want to include the product description directly under the product title for each item so viewers do not have to click on every single product to quickly see the size. Can this be done, and if so, does anyone know what options to choose or what code I need to edit?  I really appreciate any help that can be offered.  Thanks!")*

You're editing the correct file. If you don't see any change, it's probably that you're editing the correct file but not for the correct template. Make sure that you're editing it for the template you're using on the front end an not another one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ4OTEzLWNhbi1pLXNob3ctdGhlLXByb2R1Y3QtZGVzY3JpcHRpb25zLW9uLWl0ZW0tbGlzdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.153 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
