Author Topic: Unwanted "Categories" being shown in main page  (Read 1648 times)

Acceleral

  • Beginner
  • *
  • Posts: 19
Unwanted "Categories" being shown in main page
« on: March 07, 2011, 11:05:20 am »
Hi,

I suspect this is RTFM so apologise for not having found the answer, but I have a clean install of v1.1.7 on Joomala! v1.5.22 with some categories created and product details for testing.

For reasons not immediately apparent to me, the list of Categories is appearing on the main screen above the "Featured Products" area and I can't disable it (refer to the attached JPG which has the area highlighted in a red dashed box).

Any hints on why turning this off would be appreciated.

Regards,

[attachment cleanup by admin]

Acceleral

  • Beginner
  • *
  • Posts: 19
Re: Unwanted "Categories" being shown in main page
« Reply #1 on: March 10, 2011, 12:21:41 pm »
Well, I'm getting somewhere, having gone back to Joomla! basics on how the page was being rendered in the first place...via the "Home" menu.

And looking at the parameters for a VirtueMart menu, there is an option in the Component for "Page" which allows me to enter a core module such as shop.browse and that makes the home page look like I was expecting it to  :)

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10414
  • VirtueMart Version: 3+
Re: Unwanted "Categories" being shown in main page
« Reply #2 on: March 10, 2011, 13:34:15 pm »
shop.Index.tpl

remove the categories code
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

MooseMoney

  • Beginner
  • *
  • Posts: 25
Re: Unwanted "Categories" being shown in main page
« Reply #3 on: March 17, 2011, 11:14:34 am »
This is my "shop.Index.tpl.php". I also want to remove the categories shown on the shop page. How exactly do I remove the categories code?

Code: [Select]
<?php if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>

<?php

defined
'vmToolTipCalled') or define('vmToolTipCalled'1);
echo 
$vendor_store_desc."";

echo 
"<h4 class=\"gk_shop_categories\">".$VM_LANG->_('PHPSHOP_CATEGORIES')."</h4>";

echo 
$categories?>


<?php

// Show Featured Products

if( $this->get_cfg'showFeatured')) {

    
/* featuredproducts(random, no_of_products,category_based) no_of_products 0 = all else numeric amount

    edit featuredproduct.tpl.php to edit layout */

    
echo $ps_product->featuredProducts(true,10,false);

}

// Show Latest Products

if( $this->get_cfg'showlatest')) {

    
/* latestproducts(random, no_of_products,month_based,category_based) no_of_products 0 = all else numeric amount

    edit latestproduct.tpl.php to edit layout */

    
ps_product::latestProducts(true,10,false,false);

}
?>

<?php echo $recent_products?>
<a href="http://sportscarsimage.com/2008-chevrolet-hhr-ss/">2008 chevrolet hhr ss</a> <a href="http://sportscarsimage.com/2012-chevrolet-camaro-convertible-eu-version/">2012 chevrolet camaro convertible eu version</a>

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10414
  • VirtueMart Version: 3+
Re: Unwanted "Categories" being shown in main page
« Reply #4 on: March 17, 2011, 13:42:31 pm »
echo "<h4 class=\"gk_shop_categories\">".$VM_LANG->_('PHPSHOP_CATEGORIES')."</h4>";

echo $categories; ?>

^^^^ thats the category header, and the categories
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

MooseMoney

  • Beginner
  • *
  • Posts: 25
Re: Unwanted "Categories" being shown in main page
« Reply #5 on: March 18, 2011, 11:29:24 am »
Thank you!
<a href="http://sportscarsimage.com/2008-chevrolet-hhr-ss/">2008 chevrolet hhr ss</a> <a href="http://sportscarsimage.com/2012-chevrolet-camaro-convertible-eu-version/">2012 chevrolet camaro convertible eu version</a>