News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Description only on Category page.

Started by tjm1987, January 09, 2012, 13:29:04 PM

Previous topic - Next topic

tjm1987

Just wondering whether anyone knows how to set a particular category page so that it only has a description and no products.

The reason for this is that I have two standard categories with products displayed, but would like to have a third that re-directs to an external site.

I can have the link in the description if I enable a dummy product, but can't seem to figure out a way to do this without a product on there.

Any help would be hugely appreciated.

JtouchMobile.com

Create a custom category layout -> assign this layout to the category that you would like to display its description only.

Step 1: Place to save your custom layout is: /components/com_virtuemart/views/category/tmpl/
name of the file as any, like: 'description_only.php'

Code:


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


THIS IS EXTRA CATEGORY TEMPLATE
<div class="category_description">
<?php echo $this->category->category_description ?>
</div>



Step 2: Edit the category -> select template as 'description_only'
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

tjm1987