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.
Printable View
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'])
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 ... :smile: