News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product category layouts not works if the category is unpublished

Started by gain, September 17, 2013, 12:10:11 PM

Previous topic - Next topic

gain

Hi all,
I have an unpublished category I use in other part of the site with  mod_virtuemart_product.

I need a custom layout for these products, but I noticed that if the category is unpublished layout specification in category edit is not used: the default one is loaded.

Is that the correct behaviour or a little bug?

Thanks in advance for the support.
Hope in a reply.

Bye

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gain

Joomla 2.5.14
VirtueMart 2.0.22a
PHP 5.3.10
No live url, I'm working in localhost, sry... and I use custom overrides but no Joomla template with VirtueMart styling...

Sry for the inaccuracy...

Maxim Pishnyak

Quote from: gain on September 17, 2013, 12:10:11 PM
I have an unpublished category I use in other part of the site with  mod_virtuemart_product.
Why you can't use published category?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

gain

Quote from: Maxim Pishnyak on September 18, 2013, 09:51:05 AM
Quote from: gain on September 17, 2013, 12:10:11 PM
I have an unpublished category I use in other part of the site with  mod_virtuemart_product.
Why you can't use published category?

My customer sells products and want to add events (with an entrance fee) where he presents and test his products.
So we have put events as products under an "events" category and created a part of the site for browsing them.

Quite cool, but we want not to show the "events" category and event-products related in the main part of the shop...

Maxim Pishnyak

Quote from: gain on September 18, 2013, 13:15:17 PM
Quite cool, but we want not to show the "events" category and event-products related in the main part of the shop...
Why not hide them then with the help of template overrides?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

gain

Quote from: Maxim Pishnyak on September 18, 2013, 20:56:35 PM
Quote from: gain on September 18, 2013, 13:15:17 PM
Quite cool, but we want not to show the "events" category and event-products related in the main part of the shop...
Why not hide them then with the help of template overrides?

Thanks for the idea. Its not so simple cause I use the custom filters plugin, but I'll try that way...

Milbo

Unpublished categories are considered for calculation. I do not understand your setup. The layout is taken, when you call the category. But when the category is unpublished, you cant display the category, therefore there is no possibility to take the layout.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

gain

Quote from: Milbo on September 21, 2013, 11:35:23 AM
Unpublished categories are considered for calculation. I do not understand your setup. The layout is taken, when you call the category. But when the category is unpublished, you cant display the category, therefore there is no possibility to take the layout.

When the category is unpublished you can't display the category, but you can display published products inside that category (ie with mod_virtuemart_product)...

Well... if the product layout is set on category and the category is unpublished, that layout is unpublished too... quite right behaviour, I think... :)