Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Clickable Product Title Links in order confirmation email

    Hi,
    I am using zc 1.5.4

    I want clickable product title names in order confirmation email, which can be clicked to go directly to the product page on the website.

    just like in the ebay order confirmation email, we have product title with a link.

    is that possible?
    and how?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Clickable Product Title Links in order confirmation email

    This line in /includes/classes/order.php handles the HTML display of the product name and model:

    Code:
          '<td class="product-details" valign="top">' . nl2br($this->products[$i]['name']) . ($this->products[$i]['model'] != '' ? ' (' . nl2br($this->products[$i]['model']) . ') ' : '') . "\n" .
    To make it a clickable link, you'll need to:
    - get a link for the product URL probably using $this->products[$i]['id'] to get the product id
    - insert the <a href="product URL"> and </a> parts into that part of the code.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Re: Clickable Product Title Links in order confirmation email

    Quote Originally Posted by DrByte View Post
    This line in /includes/classes/order.php handles the HTML display of the product name and model:

    Code:
          '<td class="product-details" valign="top">' . nl2br($this->products[$i]['name']) . ($this->products[$i]['model'] != '' ? ' (' . nl2br($this->products[$i]['model']) . ') ' : '') . "\n" .
    To make it a clickable link, you'll need to:
    - get a link for the product URL probably using $this->products[$i]['id'] to get the product id
    - insert the <a href="product URL"> and </a> parts into that part of the code.
    Thanks for replying to my query Dr. Byte.
    i do not have much knowledge about PHP. It will be very kind of you if you may please give me the proper code that I can copy and paste into the order.php file so that I get the desired results.

    thanks in advance.
    muteyaar

 

 

Similar Threads

  1. v138a Modify Product Details in order confirmation email
    By WilpackPackaging in forum General Questions
    Replies: 3
    Last Post: 6 Jan 2015, 10:57 PM
  2. Product images on order confirmation email
    By dealbyethan.com in forum General Questions
    Replies: 26
    Last Post: 2 Oct 2010, 06:50 PM
  3. Include product id in email order confirmation
    By silverwoman in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Aug 2009, 10:40 AM
  4. Product Sort Order in Email Confirmation
    By t.harrison in forum Managing Customers and Orders
    Replies: 4
    Last Post: 21 Aug 2009, 10:27 AM
  5. change order confirmation email product details
    By stormieau in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Apr 2009, 09:03 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