By werushka on
I have this code in uc_order-customer.tpl.php
<?php
$uc_thumbnail_image = $result['node']->field_image_cache[0];
$thumbnail = theme('imagecache', 'cart', $uc_thumbnail_image['filepath'], $uc_thumbnail_image['data']['alt'], $uc_thumbnail_image['data']['title']);
?>
<?php print $thumbnail; ?>This does not print thumbnails. In invoice print view. While viewing the invoice broken image link shows http;//www.mysite.com/sites/default/files/imagecache/cart/, full image link to that specific product jpg.
Thanks for your time.
Comments
v
v
Unfortunately $result['node']->field_image_cache[0] not valid
Werushka unfortunately your $result['node']->field_image_cache[0] not returning a valid image, I believe return NULL value. Usually image_cache returns the preset folder when this happens. This may be because $result['node'] is a node without all data or you user can't see this.
you can do this test:
this code work in my standard uc_order-customer.tpl.php
you need to be sure $result['node'] is correct
Juan
done some editing and it is
done some editing and it is working thanks. You can send message for the payment info (paypal email)
Hi, Could you show your
Hi,
Could you show your edited code please?
Thanks à lot in advance,
Greetings, Martijn
Add thumbnail image to cart
Hi jvizcarrondo,
Thank you for this post. It helps me. :)
Vikrant R
Thank you very much
Thank you very much jvizcarrondo for your code snippet. It's really help me a lot.
Thanks again...