开发者

how to add a lightbox to images in Ubercart cart?

开发者 https://www.devze.com 2023-01-12 11:26 出处:网络
Can I apply \"Custom formatters\" presets to Ubercart cart ? I need to customize the html code of the images in the 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消