News:

Looking for documentation? Take a look on our wiki

Main Menu

Category Listing: I don´t want to see the products

Started by piru, May 28, 2013, 10:19:27 AM

Previous topic - Next topic

byPV

Hi piru,

QuoteRemember to include a condition to hide the products again.

Here I just talked about maintaining the following line in the layout default.php. Nothing more.


<?php if (empty($this->category->haschildren) || !empty($this->keyword)) { ?>


Quote
ad Fix for Menu Item)

This was fix for bug with Page Layout which VM ignores, but if you don't use it, so you don't need it. You can revert to original script safely.

This was the answer to your questions:

Quote
should I upload again the original code from /components/com_virtuemart/views/category/view.html.php?

and

Quote
wich fix?

It's not important. You can safely ignore it ;-)...


Let me know if it works. Thank you.

Regards,
Pavel

piru

Hi Pavel,

it works perfect!
I insert the code between FIX BEGIN and FIX END, and I included a condition to hide the products. Now work the search, I can see the categories, and I can see the products in each categorie.

Thank you so much!!!  :)

Regards
piru

piru

Hi,

I just installed thisone local with xampp, but there ist a problem because there is a white page. The error is:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\test\components\com_virtuemart\views\category\tmpl\default.php on line 369

I attached hier my whole file...

Thanks

piru

sorry, its solved. I just change the file with another older and works.
Regards
piru