Expand arrow doesn't appear in shopping cart block on home page

Posts: 27
Joined: 09/13/2007
Bug FinderCool profile pic award.

If I have items in my shopping cart and go back to my home page, the expand arrow doesn't appear. But, if I expand then collapse the shopping cart block, the arrow appears.

Worked in Alpha7b, seems broken in Alpha7c

See attached pics.

AttachmentSize
Shopping cart block on home page4.66 KB
Shopping cart block after expand then collapse3.71 KB
Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Very weird... I thought I noticed something like that on a test site once. Is that using Internet Explorer? I don't think I ever ran into the problem in Firefox.

Posts: 27
Joined: 09/13/2007
Bug FinderCool profile pic award.

IE7 and FireFox 2.

Posts: 27
Joined: 09/13/2007
Bug FinderCool profile pic award.

Well, what's even weirder is that after I slept on the issue, it's gone and I cannot get it to happen! Odd, some kind of cache issue??

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

Man... these bugs just aren't playing nice with you. Either that or your sleep is magical! I'll keep an eye out on the tests. The cart block title was changed recently to make it valid XHTML/good CSS, so I'm still open to the possibility of a bug.

Posts: 27
Joined: 09/13/2007
Bug FinderCool profile pic award.

Maybe it's an afternoon and evening bug! Acting up again. If you'd like to see it first hand, I can PM you a user login to test.

BTW - problem now seems to be isolated to IE7.

Posts: 29
Joined: 08/08/2007
Uber Donor

Am experiencing the same thing. IE7 only. My hacky fix is too check "Display the shopping cart expanded by default" in the cart block options, and to add "display: none;" to the uc_cart_block.css file:

#block-cart-title-arrow {
  display: none;
  padding-top: 5px;
  padding-right: 2px;
}

Posts: 27
Joined: 09/13/2007
Bug FinderCool profile pic award.

Thanks! I miss having the arrow display but that's better than the broken image.

I did elect to not "Display the shopping cart expanded by default", instead enabling "Display small help text in the shopping cart block."

AttachmentSize
Arrow not displayed with tip4.24 KB
Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

This bug is soooo weird. The HTML generated for the image on the Livetest is:

<img id="block-cart-title-arrow" "src="/modules/ubercart/uc_cart/images/bullet-arrow-up.gif" alt="[]" title="Expand cart block." />

Or maybe not! Look at that, an extraneous set of quotes before the src. I bet that Firefox is smart enough to weed that out and correct the HTML, but IE just tries to render it straight out. (You can see it's there in the code in the function theme_uc_cart_title_block(). Take them out to fix the bug! And how about a bug finder badge for the Ranger? Eye-wink)

Well... I'll be changing that soon. Shocked

Posts: 27
Joined: 09/13/2007
Bug FinderCool profile pic award.

I removed the extra quotes on line 278 in uc_cart.module. That fixed the problem in IE7. Thanks for the quick work.

I noticed, and this is picky, that once I expand the cart, if I hover over the arrow the tip is still "Expand cart block". If I click the down arrow again (to collapse the cart), the cart does collapse but the arrow still points down instead of changing to up. NOT a big deal. More style than substance.

BTW - thanks for the bug badge! Smiling

Posts: 104
Joined: 09/07/2007
Uber Donor

Thanks for figuring this out guys - I was having the same issue.

mnelson (not verified)

I noticed this problem in ie6 as well. fixed now. thanks!