Catalog block collapsed

Posts: 4
Joined: 11/23/2007

Hello everyone,

I have a problem with catalog block. It works fine when i am exploring catalog but when I go to product page, there isn't showed path anymore and catalog is collapsed. Anyway to fix this?

Thanks

Posts: 8
Joined: 01/30/2008

I too have that issue! please help us, we are huddling together for warmth...

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

We'll need a little more info... are you running the latest version of Ubercart? And do you have anything set for the visibility of that block in the block's configuration form?

Posts: 4
Joined: 11/23/2007

Hi Ryan,

I'm running 1.0-beta2 version and I don't have a problem with whole block visibility (i.e. role permissions) block appears always what is fine. But If i am browsing catalog the links in block are expanded. Example if I am browsing Personal vehicle tires:

Tires
-- Winter
-- -- Personal
-- Summer
-- All Year
Other

But when i click on some product from the catalog (its under Tires > Winter > Personal section) the product will be showed but the catalog will change to:

Tires
Other

I hope that I was clearer now.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Not really. Sticking out tongue Perhaps your products are in multiple categories? Also, do you have a link that you can post up for us to check out?

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Basically, I'm confused about how that happens. I've seen that happen a few times, but usually because I hadn't fixed it yet. I haven't seen it since I stopped working on it.

Posts: 4
Joined: 11/23/2007

Here is a link. It's slovak so don't be scared. Smiling

http://pneu.mrcompany.sk/pneumatiky/osobne/letne

its only one product i have and its tire in one category. If you click on product the path in left side block will be collapsed.

http://pneu.mrcompany.sk/continental/conticontactplus-205-55-r16

(On web is version 1.0-alpha-8 but I have same problem on localhost)

Posts: 4
Joined: 11/23/2007

Hello Ubercart team,

I've solved the problem with collapsed block and I would like share solution with you so you can fix it in some further release.

The problem was in uc_catalog.module on line 1560 (beta 5) in line

      if (strpos($link, $branch_path) !== false){

this should be changed on

      if (strpos($link, drupal_get_path_alias($branch_path)) !== false){

I hope it helps.

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Well alright. Thanks for the fix. I hadn't tested having aliased catalog pages enough, it seems.

Posts: 84
Joined: 02/14/2008
Bug FinderGetting busy with the Ubercode.Internationalizationizer

This thread describes the issue my dev site carried around now for months on localhost and 2 servers. Breadcrumb ok, but collapsing catalog on product's node pages.

Time to get rid of it Smiling Like others I came to line 1280 in uc_catalog.module causing the issue:

<?php
     
if (strpos($link, drupal_get_path_alias($branch_path)) !== false) {
?>

Unlike others I decided there must be a more simple solution - something even I can understand. So I took a look into all variables drifting around in _uc_catalog_navigation($branch) and I came up with $link and $branch->name... In case of a match they get the same!
<?php
     
if (strpos($link, $branch->name) !== false) {
?>

IMO this issue is connected with i18n manipulating url_aliases.

Long live ... you know who ... and the UCcommunity Smiling