Thanks for the update and posting what worked for you ...![]()
Thanks for the update and posting what worked for you ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Linda Maybe you can help me. I used the following code to add the product image to my invoice, but it is NOT resizing the image.
Maybe you can shed some light on my errors.
PHP Code:echo ' <td class="dataTableContent" align="center" valign="top">' .zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image( $order->products[$i]['id'], $width = SMALL_IMAGE_WIDTH, $height = SMALL_IMAGE_HEIGHT)) . '</td>' . "\n";
Your syntax is off on the call for the image:
Code:echo ' <td class="dataTableContent" align="center" valign="top">' .zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image( $order->products[$i]['id'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)) . '</td>' . "\n";
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I made the small change but the image still does not resize.
I was trying your calling from this thread, http://www.zen-cart.com/forum/showth...ht=products_id.
I would like it to be linked to the small image (currently 100 x 80).
Small enough to be on an invoice, big enough to be seen.
Basically I want to call the order product id and show the image associated with the order.
Thanks,
Dale
It works fine for me ... what do you have now in your code on the invoice.php using the code that I gave you?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
This is what I have:
Is there w away to call the image w/o having it nested? I think that is sloppy.PHP Code:// bof image added by inkuyo -->
echo ' <td class="dataTableContent" align="center" valign="top">' .zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image( $order->products[$i]['id'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)) . '</td>' . "\n";
// eof image added by inkuyo <--
I made the mod for the admin catalog images but I used this code for that:
The 2nd code did not seem to work though for the invoice. Not totally sure what variables use.PHP Code:echo '<br>'. zen_image(DIR_WS_CATALOG_IMAGES . $categories->fields['categories_image'] , SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH)
The code I posted will show the Product Image on the invoice.php
The part that gives the image is:
Where ever you are, if you can identify the valid products_id value whether that is:Code:zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image( $order->products[$i]['id'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT))
$order->products[$i]['id']
$products_id
$_GET['products_id']
etc. etc.
That is giving you the value in the specific file where you want to call the image ...
This is a category image:
$categories->fields['categories_image']
I thought you are trying to get the products_image from the products table ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!