Author Topic: Setting Virtuemart as *Default* Menu Item  (Read 1490 times)

toxic1

  • Beginner
  • *
  • Posts: 15
Setting Virtuemart as *Default* Menu Item
« on: September 22, 2010, 14:38:15 pm »
Setting Virtuemart as *Default* Menu Item ...  
When i do it, i lose the category images and featured items on that virtuemart page ???
I have no idea what to do, been searchin like a madman for a solution ..
please help, its probably some real easy dum thingy that i have no knowledge about :-\

cus u know,.. i cant see the "Categories" "module" anywhere, nor can i see this "Featured products" appearing anywhere on anything

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27426
  • Always on vacation
    • Jenkin Hill Internet
Re: Setting Virtuemart as *Default* Menu Item
« Reply #1 on: September 22, 2010, 15:43:44 pm »
See http://forum.virtuemart.net/index.php?topic=62254.0 then assign the VM modules to that menu link using Joomla's module manager.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

toxic1

  • Beginner
  • *
  • Posts: 15
Re: Setting Virtuemart as *Default* Menu Item
« Reply #2 on: September 22, 2010, 16:09:56 pm »
Thx, but i think its something to do with me using a Custom Template

i guess ill find a way around it, foudn lots of category displaying Free extensions
http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-categories

toxic1

  • Beginner
  • *
  • Posts: 15
Re: Setting Virtuemart as *Default* Menu Item
« Reply #3 on: September 23, 2010, 11:52:27 am »
The content that goes missing when switching virtuemart to default menu item is

echo $tpl->fetch( 'common/shopIndex.tpl.php');
in administrator/components/com_virtuemart/html/shop.index.php

components/com_virtuemart/themes/default/templates/common/shopIndex.tpl.php:
<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?>

<?php

defined( 'vmToolTipCalled') or define('vmToolTipCalled', 1);

echo $categories; ?>


<?php

// Show Featured Products

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

    /* 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', 1 )) {

    /* 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; ?>