VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: keranali on January 31, 2012, 20:27:04 PM

Title: How to ad virtuemart top level categories to homepage
Post by: keranali on January 31, 2012, 20:27:04 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: mangotti on January 31, 2012, 21:39:59 PM
What if you were to create a menu item to your Virtuemart Default Layout and make that item your home page?
Title: Re: How to ad virtuemart top level categories to homepage
Post by: Milbo on January 31, 2012, 23:15:56 PM
Use the category or categories layout in joomla administration, when creating a menu item
Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 18:02:44 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 18:34:08 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 19:02:31 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 19:20:00 PM
the menu link has to be the "default" layout.
Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 19:30:09 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 19:46:27 PM
give me a link to your homepage?:


AND:::: in your vmart administrator what do you have set for the "default" layout?
Title: Re: How to ad virtuemart top level categories to homepage
Post by: 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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 20:07:01 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 20:33:02 PM
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
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 20:37:51 PM
so this link
/index.php?option=com_virtuemart

does not show categories at the top?

Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 20:41:05 PM
Yes it shows the categories but now i lost the banner and side menu

Thanks
k
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 20:44:56 PM
So you have your joomla links set wrong.

THE frontpage needs to be set to the default vmart layout
Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 20:59:35 PM
This is not working but i believe its something i am doing wrong. Do you build e commerce web pages can i pay o get one built

Thanks
K
Title: Re: How to ad virtuemart top level categories to homepage
Post by: PRO on February 03, 2012, 21:08:57 PM
Quote from: keranali on February 03, 2012, 20:59:35 PM
This is not working but i believe its something i am doing wrong. Do you build e commerce web pages can i pay o get one built

Thanks
K

you are doing something wrong

and i am a shop owner, and dont work for others


Title: Re: How to ad virtuemart top level categories to homepage
Post by: keranali on February 03, 2012, 21:14:08 PM
Ok thanks for your help I am going to try starting over from scratch I will be back thank you so much for your time see you soon.


Thanks
K