how to add a lightbox to images in Ubercart cart?
Can I apply "Custom formatters" presets to Ubercart cart ?
I need to customize the html code of the images in the cart.
I'm trying to do it with hook_form_alter but what I get is the output html and it is too late to modify it:
[#value] = > < a href="/website/node/87">< img src="http://localhost/website/path/to/picture 1.png" alt="" title="" class="imagecache imagecache-cart" width="100" height="221" />
I need to开发者_开发百科 add "rel=lightbox" attribute to and change href path. thanks
I think you want to look at hook_uc_image_widget. I can't find the API documentation for it, but you can see an example implementation in the jQZoom module.
精彩评论