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.
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.
You could use this for the link:
NOTE: be sure to add it to both the TEXT and HTML for the order class ...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'])
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!
Life saver, thanks. Just for anyone else's info here's what I've done. ver1.5
1.open order.php look for( line 906) addPHP Code:
// build output for email notification
directly after it.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']);
2. Next Find:(it should be the very next line)PHP Code:
$this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .
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
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!
Bookmarks