VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: optmax on December 05, 2013, 02:20:55 AM

Title: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: optmax on December 05, 2013, 02:20:55 AM
Clean install
Default data

Joomal 2.5.16
VM 2.0.24c
Beez_20 template

Joomla menu 'VM' added with one item 'Shop' with menu item type 'VirtueMart ยป Category Layout',
required settings: Select a category set to 'Top Level Category' , Page Layout set to  'Categories'

Site http://vm2024c.cloudaccess.net/ (http://vm2024c.cloudaccess.net/)

Click on 'Shop' menu item and the three categories are displayed.

Click on a category NO PRODUCTS ARE LISTED
eg http://vm2024c.cloudaccess.net/index.php?option=com_virtuemart&view=category&virtuemart_category_id=3&Itemid=474 (http://vm2024c.cloudaccess.net/index.php?option=com_virtuemart&view=category&virtuemart_category_id=3&Itemid=474)

BUT remove &Itemid=474 from the URL and the PRODUCTS ARE DISPLAYED
eg http://vm2024c.cloudaccess.net/index.php?option=com_virtuemart&view=category&virtuemart_category_id=3 (http://vm2024c.cloudaccess.net/index.php?option=com_virtuemart&view=category&virtuemart_category_id=3)

All products are 'Available for all'
All config settings have been left at their default installation values

Have I missed something? 


Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: optmax on December 05, 2013, 12:21:16 PM
Just the same in VM2.0.52c
eg defualt install
http://vm2025c.cloudaccess.net/ (http://vm2025c.cloudaccess.net/)

After choosing a category from the categories layout products are only listed if the ItemId parameter is removed from the URL
Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: Milbo on December 05, 2013, 13:32:18 PM
Hey Optmax.

You did a good observation. I wondered already why people have suddenly this problem. In your case I am very sure it is connected to your menu item pointing to the category view. Please read here http://forum.virtuemart.net/index.php?topic=120433.0.
Just edit your joomla menu item and change the layout.
Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: optmax on December 05, 2013, 15:48:02 PM
Hi Milbo
I have read and tried to implement showing only categories using the category view with categories layout.

I want all the categories shown without products, then choose a category to show its products.

Using the menu item I get the categories (withouut products as expected) but when I click on a category I do not get the products (unless I delete the ItemId parameter in the URL).

It may be a config setting I have incorrect but I can not find it!

I know you are extremely busy, but would superadmin access to the test site be any use to you? The site is set up as simply as I could with the bare minimum of config/setting changes and no extensions.
Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: Milbo on December 05, 2013, 16:25:19 PM
arhg, I think I found it.

Please use in FE category/view.html.php at line 223
if(!empty($menu->query['categorylayout']) and $menu->query['virtuemart_category_id']==$categoryId){

Then the selected layout is only used for the category selected in the menu and not for all categories.
Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: talknaija on December 05, 2013, 17:19:02 PM
Quote from: Milbo on December 05, 2013, 16:25:19 PM
arhg, I think I found it.

Please use in FE category/view.html.php at line 223
if(!empty($menu->query['categorylayout']) and $menu->query['virtuemart_category_id']==$categoryId){

Then the selected layout is only used for the category selected in the menu and not for all categories.

Hi Milbo, can you please explain as i do not have a clue what all the above means. Thanks
Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: jenkinhill on December 05, 2013, 17:44:48 PM
Milbo that looks good - I had a client site I looked at earlier today where top level category products showed OK but Sub-categories showed no products. Editing view.html.php fixed it for him. Have not tested elsewhere yet.
Settings used are:
J! Menu item type Category Layout,  Select a Category set to Top level category, Page Layout set to Categories
And in VM Config/Templates  Category Layout  is set to Default

@talknaija if you have no clue about the edit it is best not to try it - wait for an updated release.
Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: optmax on December 05, 2013, 17:58:55 PM
Milbo

Thanks that worked for me!

Title: Re: No products listed when clicking through from categories layout VM 2.0.24c
Post by: Milbo on December 05, 2013, 18:17:47 PM
Thanks Jenkinhill and optmax,

I uploaded a new version 2.0.25D
http://dev.virtuemart.net/attachments/download/664/com_virtuemart.2.0.25d_extract_first.zip
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: GooRu on December 07, 2013, 21:28:00 PM
Milbo...

You passed me 2.0.25d a few days ago and I have it loaded. I followed the instructions above but noticed that the code you suggest inserting is already there, and nothing changed for the missing products in the at least two of my categories.

I have my Menu set to
Category Layout
Select a Category * (merchandise - either two of my categories - )
Page Layout * Default

The problem still exists, can you advise what I might do?
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: jjk on December 08, 2013, 09:56:32 AM
Quote from: Curt on December 07, 2013, 21:28:00 PM
The problem still exists, can you advise what I might do?

Does your problem still exist if you clear the cache from Joomla administration > Site > Maintenance > Clear Cache?
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: talknaija on December 08, 2013, 17:10:06 PM
i have upgraded to 2.0.25d and the problem still exists here too
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: GooRu on December 09, 2013, 22:53:18 PM
Quote from: talknaija on December 08, 2013, 17:10:06 PM
i have upgraded to 2.0.25d and the problem still exists here too

You bet, I do that pretty regular in fact. I also clear browser cache and use at least two of them at any time. Problem still persists
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: jjk on December 10, 2013, 13:51:14 PM
Quote from: talknaija on December 08, 2013, 17:10:06 PM
i have upgraded to 2.0.25d and the problem still exists here too
In your case I can see that you are loading two different version of jQuery on your website. I would recommend to disable the jQuery from Googleapis in VM configuration, because your template is loading a different version already.

Also your top menu and your left menu are using different structures. I suppose you will have to clean up/restructure you menus to make it work correctly. When you use submenus in a Joomla menu, check your 'Parent item' settings and your category in the 'Required Settings' section of the menu configuration.
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: GooRu on December 10, 2013, 20:07:31 PM
JKK

Thanks for the input. The VM jquery is now turned off as well as the external jQuery. Problem still seems to exists. I returned all menus system to joomla. Theme in use is from Yootheme.
Title: Re: [SOLVED] No products listed when clicking through from cat layout VM 2.0.24c
Post by: jjk on December 10, 2013, 20:18:06 PM
Quote from: Curt on December 10, 2013, 20:07:31 PM
Theme in use is from Yootheme.

You may ask them if they tested their theme with the latest version of VirtueMart. Occationally one or the other templater is not up to date with the latest changes in Virtuemart. Recently the 'Categories' layout was removed from VM and I don't know if your template overrides original VM code.