VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Products, Prices, Tax and Categories VM 1.1 => Topic started by: Devian on October 29, 2009, 12:06:48 pm

Title: Categories and sub categories problem
Post by: Devian on October 29, 2009, 12:06:48 pm
Hello. Can anyone tell me how to do this:

I have a categories (with no products) and then i have subcategories with products. I have static menu (it means that i have buttons, with links directly on top level categories).

I want to have 4 main categories and then multiple subcategories under the main.
I have problems to show subcategories.


MAIN 1
    
    SUB11    SUB12  SUB12

MAIN 2
    SUB21    SUB22  SUB 23

I want that i will click on main, then it will show me sub categories (in browse page of course) and then products under each sub categories if clicked.


Any solutions ?

Best regards ,Nejc
Title: Re: Categories and sub categories problem
Post by: Pr1de on November 08, 2009, 13:16:41 pm
I would like to know how to do that, too.  ???
Title: Re: Categories and sub categories problem
Post by: Scar on November 08, 2009, 13:33:00 pm
This is standard behaviour in VirtueMart. If you have changed anything on your site you should describe what in your post. That's why it's never a good idea to just say "I would like to know how to do that too"
Title: Re: Categories and sub categories problem
Post by: Pr1de on November 08, 2009, 14:02:23 pm
On my website (still local), i have main categories (for example: Mobile Phones, Computers...) which are also "parent" menu.
When i click on "mobile phones", i get the main picture, which i used for "mobile phones" and under that i get all the phones. That is 1 option, but not suitable for my website.
What i want is that when i click on "mobile phones", that i get all brands (2 per horizontal row) in little "clickable" sub-categories(brands). And when i click on those little windows(brands), i would like to see the whole list of phhones in that brand.
I'm sorry, if my question isn't very professional.My English isn't very good. I hope that someone will understand my question and help me.
Title: Re: Categories and sub categories problem
Post by: Scar on November 08, 2009, 14:06:37 pm
Are you using default template and theme?
Title: Re: Categories and sub categories problem
Post by: Pr1de on November 08, 2009, 14:51:31 pm
No, i use rockettheme Mynxx template and vm_mynxx theme.
Should i have a specific module enabled for this?
Thank you
Title: Re: Categories and sub categories problem
Post by: Scar on November 08, 2009, 15:07:42 pm
Subcategories are not included in Mynxx theme. There are posts how to add it, just search. And for future posts, it's easier if you state what things you have changed on your site from the beginning, like template.
Title: Re: Categories and sub categories problem
Post by: Pr1de on November 08, 2009, 17:53:58 pm
Thank you Scar, i have found the solution in one of the other forum's.
Title: Re: Categories and sub categories problem
Post by: Devian on November 19, 2009, 02:57:54 am
It was my fault. I messed up with some files. When i make a copy of default and rename it and costumize then worked fine.

Sorry for bad question.

Best regards
Title: Re: Categories and sub categories problem
Post by: kakashi807 on November 27, 2009, 06:39:53 am
hello,

how exactly you fix this problem, i'm having the same problem
Title: Re: Categories and sub categories problem
Post by: kakashi807 on November 27, 2009, 06:41:40 am
my problem is when i use the mynxx theme on the virtuemart layout, when i click the category in the website, it show the image i added but not the name of the childs and how many products it has but if i use the default them, it shows it.
Title: Re: Categories and sub categories problem
Post by: freakinerick on November 27, 2009, 07:18:46 am
component/virtuemart/
then check out the list category
on category information

make 1menu as parent category


 then  create 2menu you can set it up as sub category on parent textbox
select the  1menu as parent




[attachment cleanup by admin]
Title: Re: Categories and sub categories problem
Post by: kakashi807 on November 27, 2009, 07:33:43 am
thanks for the reply freakinerick
i guess i didn't explain well my problem, sorry for that.

i've attached two images to show my problem
on image 1, it the way i want it to display when the user click on the parent category(it's the original version of the mynxx from the demo version)

on image 2, is the way my site is currently doing...why is that??? and how i fixed that.

on image 3, that's what happen when i use the default theme

the image you see on image 2 is the image i added for that particular category.

i'm using the mynxx template but wheni used the default template, it shows the childs and the number of products but not as stylish as the mynxx is.

I made a few changes on some files on the root/administrator/com_virtuemart and reinstalled the vm from 1.1.4 to 1.1.3 everything is working fine except that part, not sure if any of those files is affecting this.
 

[attachment cleanup by admin]
Title: Re: Categories and sub categories problem
Post by: freakinerick on November 27, 2009, 08:02:50 am
what you mean is you want to view the products when the parent menu is selected? did i get it rigth?
if thats the case you want you just need to set the product info in  multi select mode in category box in product list.

are you using mynxx theme? or using your own scratch?

[attachment cleanup by admin]
Title: Re: Categories and sub categories problem
Post by: freakinerick on November 27, 2009, 08:16:34 am
bump.. lol

you dont need to change the the files in root you can edit file container in template manager and module manager..

ive read forum for modification too try to go in this link it migth help you  ;D

http://forum.virtuemart.net/index.php?topic=36076.msg195378
Title: Re: Categories and sub categories problem
Post by: kakashi807 on November 27, 2009, 08:54:58 am
thanks for the reply freakinerick, man..i got to be clearer lolz sorry for not explaning properly.

ahh..well, i know how to add the categories and all that, u see on the images i've attached above 1.jpg, 2.jpg, and 3.jpg.  on the left side you can see i already added the category and the subcategories and it's showing and when i click the parent category, it goes to the proper category but then
* on the theme i'm using (the modify mynxx theme - 2.jpg) on the right side it won't show the child but only the title and the image i added for that category

* but on 1.jpg which is the original version of mynxx (demo version),  u can see on teh right side that it's showing not only the title but also the subchilds(that's what i want).

* on 3.jpg, that's what happened when i change to the default theme, at least it's showing the subchilds but not as stylist as in 1.jpg.

i know i messed up something..i just don't know what is it, i still have the original mynxx files as backups.

* the files i changed are
     * some files from the root/administrator/com_virtuemart
     * I reinstalled VM from 1.1.4 to 1.1.3
     * i'm using a fixed version of the mynxx theme which is currently in root/component/com_virtuemart/theme/

everything is working fine, except that part that it won't show the subchilds properly.

i'm very bad at explaining things so i hope this will be much more clearer and thanks for your attention.

btwn, i checked the link you gave me and unfortunately that's not what i need.


Title: Re: Categories and sub categories problem
Post by: freakinerick on November 27, 2009, 09:58:34 am
if you are on product information(editing product name)
you can see the category : press ctrl+(mouse) select the parent menuname
to view the image in parent menu window

there is no problem in your files
i think you just need some tweakin on it.
it works fine on my site.
Title: Re: Categories and sub categories problem
Post by: kakashi807 on November 27, 2009, 10:43:39 am
lolz, how stupid of me, thanks man, that was exactly what i want it lolz
Title: Re: Categories and sub categories problem
Post by: Jose Pinzon on November 27, 2009, 22:46:57 pm
No, i use rockettheme Mynxx template and vm_mynxx theme.
Should i have a specific module enabled for this?
Thank you


to have subcategries enabled in this awesome rocket theme template U need to edit the file:
browse_header_category.tpl.php

it is located into the VM theme in the templates/browse folder

Change all inside for this

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


<h3> <?php echo $browsepage_lbl?>
  <?php 
if( 
$this->get_cfg'showFeedIcon') && (VM_FEED_ENABLED == 1) ) { ?>

  <a href="index.php?option=<?php echo VM_COMPONENT_NAME ?>&amp;page=shop.feed&amp;category_id=<?php echo $category_id ?>" title="<?php echo $VM_LANG->_('VM_FEED_SUBSCRIBE_TOCATEGORY_TITLE'?>"> <img src="<?php echo VM_THEMEURL ?>/images/feed-icon-14x14.png" align="middle" alt="feed" border="0"/></a>
  <?php 
?>

</h3>
<div style="text-align:left;"> <?php echo $navigation_childlist?> </div>
<?php if( trim(str_replace"<br />""" $desc)) != "" ) { ?>
<div class="category-desc-header"> <?php echo $desc?> </div>
<br class="clr" />
<?php
     
}
?>


I do not remember exactly the lines i did change, this is why i put all my file here, it is the call to the childlist navigation
Hope it works for U.
Title: Re: Categories and sub categories problem
Post by: baggiesmad on November 15, 2010, 13:13:26 pm
thanks