How do you theme the uc_cart_view_form when displaying cart items? Specifically I want to alter the way attributes are being displayed on the cart.

One of my attributes is actually a URL with text input option from the user. Say attribute 1 has the option of "anchor text" and attribute 2 has the url option of "http"//www.yahoo.com" I need them to be displayed as follows:
Anchor text

I tried looking around but can't seem to find any viable solution specially that all attribute options are stored in one field (data) and retrieving them individually is quite tricky.

Please advice.

Comments

longwave’s picture

Status: Active » Fixed

You should be able to do this by overriding theme_uc_product_attributes() in your theme or implementing hook_uc_product_description_alter() in a custom module.

halloffame’s picture

Thanks for that. In general where can I find a list of hooks to use to theme/customize ubercart?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.