Summary product/Virtuemart not display

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon May 18, 2015 9:17 pm
Reply with quote
Report this post
Hi,

When I create a product in virtuemart, I wrote a "Summary". Normaly, the summary must display on product in category view.

But in the template, the summary does not appear on product in category view. The resume appear in detail product just above the detailed text.

summaryNotDisplay.jpg


- Is it possible to have the "resume text virtuemart product" on the product in category view ?
- Is it possible not to have the "resume text virtuemart product" in the text detail product ?

Thanks a lot,

Jerome
User avatar
Senior Boarder

GK User
Thu May 21, 2015 8:27 pm
Reply with quote
Report this post
Hello,

Please edit two files:

in html/com_virtuemart/productdetails/default.php please remove:

Code: Select all
<?php if (!empty($this->product->product_s_desc)) : ?>
<div class="product-short-description">
    <?php echo nl2br($this->product->product_s_desc); ?>
</div>
<?php endif; ?>


in html/com_virtuemart/category/default.php please add after:

Code: Select all
<?php if ( VmConfig::get ('display_stock', 1)) : ?>
<div class="stockLavel"> <span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span> <span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP') ?></span> </div>
<?php endif; ?>


the following fragment:

Code: Select all
<?php // Product Short Description
if (!empty($product->product_s_desc)) {
   echo '<small>' . shopFunctionsF::limitStringByWord ($product->product_s_desc, 60, ' ...') . '</small>'; ?>
<?php } ?>
User avatar
Administrator

GK User
Thu May 21, 2015 9:14 pm
Reply with quote
Report this post
Hello,

That is perfect.
Thanks a lot :-)
Best regards,

Jérôme
User avatar
Senior Boarder


cron