Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Display thumbnail product images on invoice, packing slip and checkout shopping cart

Display thumbnail product images on invoice, packing slip and checkout shopping cart

Locked
This thread is locked. New replies are disabled.
18 Dec 2007, 3:16 PM
#1
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Post #1 by dealbyethan_com

Hi,

I am sure this will come in handy for those people who have been looking for getting the thumbnail product images to display at places like the admin invoice, admin packing slip and checkout shopping cart. I use the code taken from the super order packing slip (see below). However, I can't get the thumbnail images to a smaller size. Does anyone have any suggestion? Also, has anyone figured out how to show thumbnail images on the email invoice?

<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");

echo '' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a> ';
?> 

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

25 Jun 2008, 5:49 PM
#2
jillfranklin avatar

jillfranklin

New Zenner

Join Date:
Jun 2008
Posts:
3
Plugin Contributions:
0

Post #2 by jillfranklin

hi
i am a newbee and im really stressing out here
in my check out how do i make the item a link so i can click it and know exactly what my customer purchesed insted of it being just text

26 Jun 2008, 4:42 PM
#3
mdegrandis avatar

mdegrandis

New Zenner

Join Date:
Jun 2008
Location:
Oregon
Posts:
60
Plugin Contributions:
0

Post #3 by mdegrandis

So I used your code to add the product images to my invoice. But now it says 'object' then has the picture. I place the code in the tabledata for model. The HTML is getting 'object' but I can't find it in the php. Any Ideas?

NiceBadge.com Lifetime guarantee on all badges! Free mock ups, 24 hour turn around time!