Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2012
    Posts
    3
    Plugin Contributions
    0

    Idea or Suggestion Product link on oder confirmation email

    Hi all
    I need to receive the order confirmation email, only for the admin, containing the link to the product. can this change? If yes, can you give me a starting point from which to start? I thought I'd change the order of admin class ...
    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    58,258
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Product link on oder confirmation email

    That's gonna be complicated, since the admin email is just a copy of the customer's email, with some extra stuff slapped onto the end.

    It's all handled by the orders.php class.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: Product link on oder confirmation email

    For now I found a different solution that's OK for my needs. In order page, the admin side, each has a picture, the name is clickable and will redirect to the product page.
    This is the procedure:

    /admin/order.php

    @about line 490 immediately after the FOR cicle: for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

    write:

    PHP Code:
        $url $order->products[$i]['id'];
        
    $name $order->products[$i]['name']; 

    @about line 500 replace this:


    PHP Code:
          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']; 
    with this:

    PHP Code:
    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">' "<a href=http://www.nameofyourstore.com/index.php?main_page=product_info&products_id=$url>$name</a>"  '<br>' .
               
    zen_image(DIR_WS_CATALOG DIR_WS_IMAGES zen_get_products_image($order->products[$i]['id']), SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT); 

    This is the result:




    The photos can be seen properly with imagehandler.
    The links to the products work only if the product is active.

    When I have some time, I'll find (I hope) the solution also to insert the link in the admin confirmation email.
    I hope to be helpful and sorry for my english (sponsored by google translate hahahaahahhahaha)
    Last edited by mico86; 9 Sep 2012 at 03:57 PM.

 

 

Similar Threads

  1. in oder confirmation email i want to change the x for units
    By al_arvi in forum General Questions
    Replies: 2
    Last Post: 11 Jan 2012, 06:20 PM
  2. Inserting a link in the Order Confirmation Email
    By mccawphoto in forum General Questions
    Replies: 0
    Last Post: 21 Aug 2009, 03:50 AM
  3. Can I add a Link to product URL in confirmation email?
    By RoPey in forum General Questions
    Replies: 0
    Last Post: 4 Dec 2007, 12:57 PM
  4. Download link in confirmation email is not showing
    By astrup in forum General Questions
    Replies: 1
    Last Post: 1 Nov 2007, 10:11 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
  •