Author Topic: Product sub categories not using modified view  (Read 2187 times)

JJBW

  • Beginner
  • *
  • Posts: 35
Product sub categories not using modified view
« 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.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10322
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

JJBW

  • Beginner
  • *
  • Posts: 35
Re: Product sub categories not using modified view
« Reply #2 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.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10322
  • VirtueMart Version: 3+
Re: Product sub categories not using modified view
« Reply #3 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]
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

JJBW

  • Beginner
  • *
  • Posts: 35
Re: Product sub categories not using modified view
« Reply #4 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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9835
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Product sub categories not using modified view
« Reply #5 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?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

JJBW

  • Beginner
  • *
  • Posts: 35
Re: Product sub categories not using modified view
« Reply #6 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.