Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2012
    Posts
    31
    Plugin Contributions
    0

    Default Putting a link to product in order e-mail

    I have a lot of products in my store, some of them have similar or even identical names. I would like to be able to have a link to the product in the shop embedded with the order e-mail, but I am not sure how to do.

    Thank you.

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

    Default Re: Putting a link to product in order e-mail

    You could use this for the link:
    Code:
    zen_href_link(zen_get_info_page((int)$this->products[$i]['id']), 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id((int)$this->products[$i]['id'])) . '&products_id=' . (int)$this->products[$i]['id'])
    NOTE: be sure to add it to both the TEXT and HTML for the order class ...
    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!

  3. #3
    Join Date
    Feb 2013
    Posts
    1
    Plugin Contributions
    0

    Default Re: Putting a link to product in order e-mail

    Quote Originally Posted by Ajeh View Post
    You could use this for the link:
    Code:
    zen_href_link(zen_get_info_page((int)$this->products[$i]['id']), 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id((int)$this->products[$i]['id'])) . '&products_id=' . (int)$this->products[$i]['id'])
    NOTE: be sure to add it to both the TEXT and HTML for the order class ...
    Life saver, thanks. Just for anyone else's info here's what I've done. ver1.5

    1.open order.php look for
    PHP Code:
    // build output for email notification 
    ( line 906) add
    PHP Code:
    ////SHOW PRODUCT LINK
    $produrllink[$i] = zen_href_link(zen_get_info_page((int)$this->products[$i]['id']), 'cPath=' zen_get_generated_category_path_rev(zen_get_products_category_id((int)$this->products[$i]['id'])) . '&products_id=' . (int)$this->products[$i]['id']); 
    directly after it.

    2. Next Find:
    PHP Code:
    $this->products_ordered .=  $this->products[$i]['qty'] . ' x ' $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ' (' $this->products[$i]['model'] . ') ' '') . ' = ' 
    (it should be the very next line)

    Replace with

    PHP Code:
    $this->products_ordered .=  $this->products[$i]['qty'] . ' x ' $this->products[$i]['name'] . ' '$produrllink[$i]. ($this->products[$i]['model'] != '' ' (' $this->products[$i]['model'] . ') ' '') . ' = ' 

    I only use plain txt email but it works fine for me. Thanks

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

    Default Re: Putting a link to product in order e-mail

    Thanks for the update that this worked for you to get you on track ...
    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. v153 Putting a product on sale without putting in specials section
    By bam3312 in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 2 Sep 2014, 01:36 AM
  2. v138a Putting disclosure in USPS Express mail
    By nishajh in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Oct 2012, 07:29 PM
  3. Putting a link to recommended accessories on a product page
    By moggi1964 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 May 2009, 01:28 AM
  4. Adding a link in the order confirmation e-mail?
    By cikk in forum General Questions
    Replies: 0
    Last Post: 16 Aug 2008, 01:00 AM
  5. Sending e-mail order notification to more than one e-mail address
    By gardengate in forum Basic Configuration
    Replies: 2
    Last Post: 8 Apr 2008, 06:23 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