Hi,
There's few ways to do this, from adding a custom field for products to the easiest way (modify order email)
You can modify mail/order.tpl OR mail/order.twig (depending on your OpenCart version) like this:
You have area:
to
Of course, if you want more complex solution, you can modify products to also support to add comment is admin and in order when product has some comment assigned to show it.
Wish you many sales,
Vasile Ciotu
Software Engineer @ OC-Extensions
There's few ways to do this, from adding a custom field for products to the easiest way (modify order email)
You can modify mail/order.tpl OR mail/order.twig (depending on your OpenCart version) like this:
You have area:
Code: Select all
<?php foreach ($products as $product) { ?>
<tr>
<td> ... product_name ...
</td>
....
Code: Select all
<?php foreach ($products as $product) { ?>
<tr>
<td> ... product_name ...
<?php if ($product['product_id'] == 77) { ?> // assumming that 77 is ID of product where you want to add some comment
some cool comment here like: OC-Extensions.com is the best :)
<?php } ?>
</td>
Wish you many sales,
Vasile Ciotu
Software Engineer @ OC-Extensions
Who is online
Users browsing this forum: No registered users and 71 guests