VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: JJBW on November 15, 2011, 16:56:27 PM

Title: Product sub categories not using modified view
Post by: JJBW on November 15, 2011, 16:56:27 PM
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.
Title: Re: Producy sub categories not using modified view
Post by: PRO on November 15, 2011, 17:08:53 PM
use a template override instead

http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Title: Re: Product sub categories not using modified view
Post by: JJBW on November 15, 2011, 17:18:48 PM
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.
Title: Re: Product sub categories not using modified view
Post by: PRO on November 15, 2011, 17:58:22 PM
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]
Title: Re: Product sub categories not using modified view
Post by: JJBW on November 15, 2011, 18:18:12 PM
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.
Title: Re: Product sub categories not using modified view
Post by: Milbo on November 15, 2011, 22:55:07 PM
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?
Title: Re: Product sub categories not using modified view
Post by: JJBW on November 16, 2011, 12:21:09 PM
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.