Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    Default Product links and image in Customer->Order

    I would like to add links and small image for the products in the order details at Customer->Order in the admin. This will help us when processing orders.
    I tried to use the zen_get_info_page but fail. Do I need to add some function under admin/function/ Can anyone give me a help on this?

  2. #2
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product links and image in Customer->Order

    I want to do this too. Can anyone help on this?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product links and image in Customer->Order

    If you mean on the Admin Customer ... Order ... so that when you look at the orders.php page you want to see the image and have a link to edit the Product ...

    You can edit the file:
    /your_secret_admin/orders.php

    and add the code in RED:
    Code:
          echo '          <tr class="dataTableRow">' . "\n" .
               '            <td class="dataTableContent" valign="top" align="right">' . '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'action=new_product' . '&cPath=' . zen_get_product_path($order->products[$i]['id']) . '&pID=' . $order->products[$i]['id'] . '&product_type=' . zen_get_products_type($order->products[$i]['id'])) . '">' . zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image($order->products[$i]['id']), $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . '</a>' . '&nbsp;</td>' . "\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'];
    Just above that section of code, you will see:
    Code:
                <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
    Change the colspan from 2 to 3 ...
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product links and image in Customer->Order

    thank you so much for you prompt reply Ajeh! Your help is great! Can I have the image link to the storefront product page instead of editing the product? It's will be good if the product name also link to the store product page. This can help the people processing the order view clearly what the customer order.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product links and image in Customer->Order

    This has code where the first image will open a new window to the Catalog for the Product ... and the second has the the link to edit the Product in the catalog ...
    Code:
          echo '          <tr class="dataTableRow">' . "\n" .
               '            <td class="dataTableContent" valign="top" align="right">' . '<a href="' . zen_catalog_href_link(zen_get_handler_from_type(zen_products_lookup($order->products[$i]['id'], 'products_type')) . '_info', 'cPath=' . zen_get_product_path($order->products[$i]['id']) . '&products_id=' . $order->products[$i]['id']) . '" target= "_blank">' . zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image($order->products[$i]['id']), $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . '</a>' . '&nbsp;</td>' . "\n" .
               '            <td class="dataTableContent" valign="top" align="right">' . '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'action=new_product' . '&cPath=' . zen_get_product_path($order->products[$i]['id']) . '&pID=' . $order->products[$i]['id'] . '&product_type=' . zen_get_products_type($order->products[$i]['id'])) . '">' . zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image($order->products[$i]['id']), $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . '</a>' . '&nbsp;</td>' . "\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'];
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Nov 2011
    Posts
    12
    Plugin Contributions
    0

    Default Re: Product links and image in Customer->Order

    thank you for your great help. I can show the order image and hyperlink in the admin order successfully!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product links and image in Customer->Order

    Thanks for the update that this is now working 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: v1.5.5]
    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!

 

 

Similar Threads

  1. v1.2.x Excel Export of Customer Contact Details and Customer Order History?
    By sbokkie12 in forum General Questions
    Replies: 3
    Last Post: 1 May 2013, 12:43 AM
  2. HTML Links in Customer Comments (order update)
    By Green333 in forum General Questions
    Replies: 2
    Last Post: 1 Mar 2011, 06:45 AM
  3. Removing category image links and text links from the HOME page
    By EddieMac in forum Basic Configuration
    Replies: 2
    Last Post: 24 Apr 2008, 02:53 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