News:

Support the VirtueMart project and become a member

Main Menu

How to ad virtuemart top level categories to homepage

Started by keranali, January 31, 2012, 20:27:04 PM

Previous topic - Next topic

keranali

Hi Everyone,


I need help in adding my virtuemart top level categories to the front homepage I can do it through modules however instead of thumbnail categories I keep getting a list like a menu is there anyway to get the thumbnails.

thanks

mangotti

What if you were to create a menu item to your Virtuemart Default Layout and make that item your home page?

Milbo

Use the category or categories layout in joomla administration, when creating a menu item
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

keranali

Hi Guys Thanks for the reply however I dont quite follow maybe I can show you what I am talking about.

I want this section

http://demo.gavick.com/joomla16/jan2012/index.php?option=com_virtuemart&view=categories&virtuemart_category_id=0&Itemid=402

to fall where the new products section lies

http://demo.gavick.com/joomla16/jan2012/index.php?option=com_virtuemart&view=categories&virtuemart_category_id=0&Itemid=402

Please tell me if this is possible.

Thanks
a million

PRO

components/com_virtuemart/views/virtuemart/tmpl/default.php

notice here
https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/components/com_virtuemart/views/virtuemart/tmpl/default.php

<?php

# load categories from front_categories if exist
if ($this->categories) echo $this->loadTemplate('categories');

# Show template for : topten,Featured, Latest Products if selected in config BE
if (!empty($this->products) ) { ?>
   <?php echo $this->loadTemplate('products');
}

?>


YOU can switch them all you want

this will get you started
http://forum.virtuemart.net/index.php?topic=90935.0

keranali

Hello Thanks for your reply ok so I have copied and replaced the script you posted into the components/com_virtuemart/views/virtuemart/tmpl/default.php file saved it and refreshed the home page however nothing has changed am I missing something?

Thanks
K

PRO


keranali

Hi Banquet, Its still not working I tried making Menu Types in the menu manager as default layout but it just gives me a blank page I dont want to replace the entire front page I just want the thumbnails category to fall where New Products is.

Thanks
K

PRO

give me a link to your homepage?:


AND:::: in your vmart administrator what do you have set for the "default" layout?

keranali

HI again don't mean to be so joomla pesty but I am running on a wamp server localhost/promo/ and in the virtue mart admin under templates " virtuemart home page settings" it is set as 'default products' i Tried changing it to default categories but still nothing.


Thanks
K

PRO

Quote from: keranali on February 03, 2012, 20:01:03 PM
HI again don't mean to be so joomla pesty but I am running on a wamp server localhost/promo/ and in the virtue mart admin under templates " virtuemart home page settings" it is set as 'default products' i Tried changing it to default categories but still nothing.


Thanks
K

The template I told you to edit is the

"default" layout.     NOT default products., so change it to "default"

look here
/components/com_virtuemart/views/virtuemart/tmpl/

and you will see the different templates.

the default.php includes the other 2 layouts

keranali

I see yes I now understand what you are talking about there is "default" "default_products" default categories" off_line".

So i made the script change to "default" and save and refresh but still no change even if i try changing between each of the defaults i see no change?


Thanks
k

PRO

so this link
/index.php?option=com_virtuemart

does not show categories at the top?


keranali

Yes it shows the categories but now i lost the banner and side menu

Thanks
k

PRO

So you have your joomla links set wrong.

THE frontpage needs to be set to the default vmart layout