Author Topic: Product category layouts not works if the category is unpublished  (Read 1836 times)

gain

  • Beginner
  • *
  • Posts: 47
Product category layouts not works if the category is unpublished
« on: September 17, 2013, 12:10:11 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28314
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

gain

  • Beginner
  • *
  • Posts: 47
Re: Product category layouts not works if the category is unpublished
« Reply #2 on: September 17, 2013, 15:54:54 pm »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2656
Re: Product category layouts not works if the category is unpublished
« Reply #3 on: September 18, 2013, 09:51:05 am »
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

  • Beginner
  • *
  • Posts: 47
Re: Product category layouts not works if the category is unpublished
« Reply #4 on: September 18, 2013, 13:15:17 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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2656
Re: Product category layouts not works if the category is unpublished
« Reply #5 on: September 18, 2013, 20:56:35 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

  • Beginner
  • *
  • Posts: 47
Re: Product category layouts not works if the category is unpublished
« Reply #6 on: September 18, 2013, 21:04:57 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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10273
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Product category layouts not works if the category is unpublished
« Reply #7 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.
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

  • Beginner
  • *
  • Posts: 47
Re: Product category layouts not works if the category is unpublished
« Reply #8 on: September 21, 2013, 11:47:58 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... :)