Originally Posted by
swguy
for 2), you can make this work in plain text by making using the link itself as the anchor text.
Instead of <a href="https://google.com">Google</a>
use
<a href="https://google.com">https://google.com</a>
For 3), this will only work in HTML email, but you can certainly do it by modifying the order email.
For 1), you'll have to modify the outgoing email which is constructed in includes/classes/order.php
Thank you for the reply and guidance.
So far it is where i am at:
1) still working on it
2) Here is the code i added to includes/languages/english/bootstrap/email_extras.php
Code:
define('EMAIL_ORDER_MESSAGE','<div id="review-google"><center>Let us know how we did by leaving us your feedback <a href="https://g.page/r/CbK8lN0u0Ic2EBM/review">here</a></center></div>');
As mentioned before, it looks great in HTML emails but "weird" if the customer has plain text email. If i make the link itself as an anchor text, it would work in plain text but would look odd in HTML unless I am missing something. It is not really an issue but more of convenience/style preference.
3) So far, I managed to have product picture displayed on the order page by adding this to admin/orders.php
Code:
echo zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . zen_get_products_image($order->products[$i]['id']).'" align="left" width=200"', zen_output_string($product_name), (int)$img_width);
right above
Code:
echo $order->products[$i]['name'];
Probably not the best way to do it but it works so far.
It is my understanding that editing includes/classes/order.php is for plain text email. Would any edit to this files change the HTML emails as well?
How do i call the product image into HTML email?
I have been going over the docs at https://docs.zen-cart.com/user/email/customizing_email/ but it is still not going thru my thick monkey brain yet.
Any help would be appreciated.
And i apologize in advance for ignorance. I am not a coder or anything like that. Just slowly getting more into zen cart
Bookmarks