Shoppin Cart icon disappears when...

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

Administer/Blocks/Shopping Cart/Configure
Entering any text into the "Block Title" field causes the Shopping Cart icon to disappear.

I'm using the latest code from Bazaar, checked out around 9pm last Friday (2007-Sep-07)

Thank You.
Scott

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

Hmm.. this has been a feature for some time so that if someone didn't like the images/Javascript in the block title they could get rid of it by specifying a title on the block page. I haven't really considered changing the way this works but could be convinced if it came to it. Eye-wink

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

Fair enough. I was looking for an easy way to display the shopping cart image (which i am replacing with an image of a shopping bag) and have the text say "Shopping Bag." I'll instead use the tag and create a custom block directly above the cart block that will display the shopping bag icon and text.

Thanks Ryan,
Scott

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

No problem. I'll check the code in the morning, but I think I may have put the title into a theme function that you can override in your site's theme. If not, I'll get on it tomorrow. Eye-wink

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

Update: The function is theme_uc_cart_title_block() which you can override in your theme. You can really just copy the version in uc_cart.module to your template.php and then modify it as necessary. This will let you make the change without modifying any core code - update safe. Smiling

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

Sweet. Thanks Ryan!
Scott