views:

22

answers:

1

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

A: 

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.

Matt V.
are you sure this function is for the cart and not the catalog ? There is alredy lightbox2 trigger (in Ubercart settings indeed you have lightbox2 but it works for catalog only).
Patrick
Patrick

related questions