News:

Support the VirtueMart project and become a member

Main Menu

Product sub categories not using modified view

Started by JJBW, November 15, 2011, 16:56:27 PM

Previous topic - Next topic

JJBW

Hi everyone.

Can someone help please?

I've modified the categories view and called it 'default1.php' and it works very well with parent categories but the modified view, 'default1', isn't adopted by child (sub) categories even though 'default1' is set as the default view in configuration and the actual sub category browse page view is set to 'default1' too.

Am I missing something obvious?

Does anyone has any suggestions please?

Many thanks for your time.


JJBW

Hi

Many thanks for your very quick reply.  I'm using a template override.  It works just fine with parent categories but doesn't work with sub categories.

Thank you for you help.

PRO

create a /html/com_virtuemart folder in your JOOMLA template. Then for each view create a folder for it. THEN, you can change default1.php back to default.php. Then place that default.php in the view folder inside your template







[attachment cleanup by admin]

JJBW

Hi

Thanks again for your quick reply.

Thanks for your suggestion but this is what I'm currently doing.  Still works for parent categories but not for child categories.

Many thanks.

Milbo

What is your exact file layout? what is your choosen template? how do you choose? in joomla, in vm? Do you use layout/template overrides? What is your exact configuration?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

JJBW

Hi Milbo

I'm using a template I made.  I'm currently using layout/template overrides.  I have both default.php and the modified version default1.php in my templates html folder, html/com_virtuemart/category.  default1.php is selected as the default category view in VM configuration and also set in each individual category and child category.  This all works fine for parent categories view but not child categories view.

I've noticed that if I select my template as default template in VM configuration I get an error message "The choosen template couldnt found on the filesystem: my template".

Many thanks.