Best way to replace UberCart icons?

Posts: 76
Joined: 09/19/2007
Bug FinderGetting busy with the Ubercode.

If I wanted to replace out the UberCart icons for the shopping cart and arrows, is there a way to do this without running the risk of overriding the icons on the next update?

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

You can always just override the theme function theme_uc_cart_block_title()... copy/paste the original function and change the names of your image files. Should work just fine. Smiling

Posts: 76
Joined: 09/19/2007
Bug FinderGetting busy with the Ubercode.

Good call, thanks! I'm still getting used to how all of Drupals APIs can be used to configure output.

Posts: 76
Joined: 09/19/2007
Bug FinderGetting busy with the Ubercode.

Just in case someone else comes across this post, it looks like the function is actually theme_uc_cart_title_block(). Smiling

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

Man... that's a horrible name for that function. Sticking out tongue

I'm going to change the two theme functions related to the cart block in Alpha 7d to be named:

theme_uc_cart_title_block() -> theme_uc_cart_block_title()
theme_uc_cart_display_block() -> theme_uc_cart_block_content()

You will need to update your theme files accordingly after updating to Alpha 7d.