Ubercart – Get the product picture

You can get the product picture by the product node id using the following function

print uc_product_get_picture(<product node id>, 'cart');

 

you can use any other ImageCache settings by replacing the ‘cart’ parameter.

Done =)

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.