Short description in product list

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Oct 16, 2014 9:42 am
Reply with quote
Report this post
Hi, I need to show the short description on the page that shows a list of available items for the selected category . At this moment only the name of the article is shown. I do not understand where I can do this .
User avatar
Expert Boarder

teitbite
Fri Oct 17, 2014 9:35 am
Reply with quote
Report this post
Hi

Can You tell me some more details ? What is the source of this items ? K2 articles, VM products, etc . What should display this short informations, a module (if yes, than which one), in category layout, tag layout, etc.

Or show me on a live site where exactly so I'll learn rest from code.
User avatar
Moderator

GK User
Fri Oct 17, 2014 1:52 pm
Reply with quote
Report this post
you're right , sorry . The problem is in virtuemart , list items in the category view . This is one of the pages
http://www.pianetacapello.it/articoli-p ... inish.html
User avatar
Expert Boarder

teitbite
Sat Oct 18, 2014 4:50 pm
Reply with quote
Report this post
Hi

Please edit /html/com_virtuemart/category/default.php find line:

Code: Select all
<h3 class="catProductTitle"><?php echo JHTML::link($product->link, $product->product_name); ?></h3>


and add this below:

Code: Select all
<div><?php echo $product->product_s_desc; ?></div>
User avatar
Moderator

GK User
Thu Nov 06, 2014 5:02 pm
Reply with quote
Report this post
I'm sorry but I not find the code you said.
Here is the code about the page default.php

Code: Select all
<?php
/**
*
* Show the products in a category
*
* @package   VirtueMart
* @subpackage
* @author RolandD
* @author Max Milbers
* @todo add pagination
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2012 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
 * @version $Id: default.php 6104 2012-06-13 14:15:29Z alatak $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

if ($this->category->haschildren) {

// Category and Columns Counter
$iCol = 1;
$iCategory = 1;

// Calculating Categories Per Row
$categories_per_row = VmConfig::get ( 'categories_per_row', 3 );
$category_cellwidth = ' width'.floor ( 100 / $categories_per_row );

// Separator
$verticalseparator = " vertical-separator";
?>

<div class="category-view">

<?php // Start the Output
if ($this->category->children ) {
    foreach ( $this->category->children as $category ) {

       // Show the horizontal seperator
       if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
       <div class="horizontal-separator"></div>
       <?php }

       // this is an indicator wether a row needs to be opened or not
       if ($iCol == 1) { ?>
       <div class="row">
       <?php }

       // Show the vertical separator
       if ($iCategory == $categories_per_row or $iCategory % $categories_per_row == 0) {
          $show_vertical_separator = ' ';
       } else {
          $show_vertical_separator = $verticalseparator;
       }

       // Category Link
       $caturl = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id , FALSE);

          // Show Category ?>
          <div class="category floatleft<?php echo $category_cellwidth . $show_vertical_separator ?>">
             <div class="spacer">
                <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
                   <?php echo $category->images[0]->displayMediaThumb("",false); ?>
                </a>
               
                <h2>
                   <a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
                   <?php echo $category->category_name ?>
                   </a>
                </h2>
               
                <a href="<?php echo $caturl; ?>" class="readon"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'); ?></a>
             </div>
          </div>
       <?php
       $iCategory ++;

       // Do we need to close the current row now?
       if ($iCol == $categories_per_row) { ?>
       <div class="clear"></div>
       </div>
          <?php
          $iCol = 1;
       } else {
          $iCol ++;
       }
    }
}
// Do we need a final closing row tag?
if ($iCol != 1) { ?>
   <div class="clear"></div>
   </div>
<?php
}
?>
</div>
<?php } ?>


as you can see the string that you said is not inside
User avatar
Expert Boarder

teitbite
Sat Nov 08, 2014 10:35 am
Reply with quote
Report this post
Hi

Please update Your template to the latest version and check again. If You will not be able to find it still than please send me an access to ftp and I'll look for a different place.
User avatar
Moderator


cron