Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Adding thumbnail images to Packing Slips and Invoices, Zencart 1.5.0

    Tried using the code I had used to modify zen cart v1.3.8 but after two attempts it just reports back an error message in v1.5.0. Does anyone have the steps to accomplish this in zen cart v1.5.0? I looked around but only found the steps for v1.3.8

  2. #2
    Join Date
    Mar 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: Adding thumbnail images to Packing Slips and Invoices, Zencart 1.5.0

    can you post the code you tried plz ;)

  3. #3
    Join Date
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding thumbnail images to Packing Slips and Invoices, Zencart 1.5.0

    admin/invoice.php

    (line 146)

    <tr class="dataTableHeadingRow">

    replace with

    <tr class="dataTableHeadingRow">
    <td width="120px"></td >

    (line 156)

    for ($i = 0, $n = sizeof ($order->products); $i < $n; $i++) {

    replace with

    for ($i = 0, $n = sizeof ($order->products); $i < $n; $i++) {
    $itemimage = $db->Execute("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$order->products[$i]['id'] . "'");
    $invoice_image = $itemimage->fields['products_image'];
    if(file_exists ("../images/invoice/" . $invoice_image)) // this part is optional
    { // this will look for the same filename in
    $invoice_image = "invoice/" . $invoice_image; // /images/invoice and use that instead
    } //

    (line 164)

    echo ' <tr class="dataTableRow">' . "\n" .
    ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
    ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];

    replace with

    echo ' <tr class="dataTableRow">' . "\n" . '<td class="dataTableContent" valign="center">(&nbsp;)&nbsp;<img width="100" src="/images/' . $invoice_image . '" /></td>' .
    ' <td class="dataTableContent" valign="top" align="right">&nbsp;' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
    ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];

  4. #4
    Join Date
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding thumbnail images to Packing Slips and Invoices, Zencart 1.5.0

    Any recommendation anyone?

 

 

Similar Threads

  1. Customizing Invoices and Packing Slips
    By Crzipilot in forum Managing Customers and Orders
    Replies: 2
    Last Post: 29 Nov 2010, 07:31 AM
  2. Editing Packing slips and invoices
    By dvdd127 in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 17 Sep 2009, 12:12 AM
  3. Ordering of items on invoices and packing slips
    By d0ugparker in forum Managing Customers and Orders
    Replies: 1
    Last Post: 17 Aug 2009, 01:05 AM
  4. changing the invoices and packing slips
    By wills in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Nov 2008, 09:11 AM
  5. Order Invoices and Packing Slips Question
    By nrg77 in forum Managing Customers and Orders
    Replies: 8
    Last Post: 12 Jul 2007, 07:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR