-
Posts
8 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Posts posted by Francisco Ampuero
-
-
On 10/1/2020 at 9:58 AM, datakick said:
Of course it's possible. You need to
1) edit file /classes/module/PaymentModule.php
and change lines
$productVarTpl = [ 'reference' => $product['reference'], 'name' => $product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : ''), 'unit_price' => Tools::displayPrice($productPrice, $this->context->currency, false), 'price' => Tools::displayPrice($productPrice * $product['quantity'], $this->context->currency, false), 'quantity' => $product['quantity'], 'customization' => [], ];
to look like this:
$productVarTpl = [ 'id_product' => (int)$product['id_product'], 'id_product_attribute' => $product['id_product_attribute'] ? (int) $product['id_product_attribute'] : null, 'id_image' => $product['id_image'], 'link_rewrite' => $product['link_rewrite'], 'reference' => $product['reference'], 'name' => $product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : ''), 'unit_price' => Tools::displayPrice($productPrice, $this->context->currency, false), 'price' => Tools::displayPrice($productPrice * $product['quantity'], $this->context->currency, false), 'quantity' => $product['quantity'], 'customization' => [], ];
That will pass additional data to the order_conf_product_list.tpl template
2) edit /mails/en/order_conf_product_list.tpl -- replace /en/ with iso code of your language
and add this code there, just after first <tr>:
<td style="border:1px solid #D6D4D4;"> <table class="table"> <tr> <td width="10"> </td> <td> <img src="{$link->getImageLink($product['link_rewrite'], $product['id_image'], 'cart')}" alt="{$product['name']}" /> </td> <td width="10"> </td> </tr> </table> </td>
note the 'cart' string in getImageLink function. This is the image type that will be used. You can change it to any image type that exists in your system. 'cart' or 'home' should work fine in most cases
3) edit /mails/en/order_conf.html
you will need to add new column header here, and also adjust table colspans. Put this code
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Image</th>
just above
<th bgcolor="#f8f8f8" style="border:1px solid #D6D4D4;background-color: #fbfbfb;color: #333;font-family: Arial;font-size: 13px;padding: 10px;">Reference</th>
and replace two occurances of
colspan="5"
with
colspan="6"
That should do the trick. Result looks something like this:
Gracias!!!!!!
Funciona perfecto TB11
-
Buenas Tardes YANIV14.
Al parecer, al actualizar a TB v1.2 LIMPIO, primera instalación. Todo funciona muy bien!!!!
NO se borran los atributos color (excelente!) y NO hay error al editar productos (excelente!)
Muchas gracias por la Ultima Actualización !!!
- 1
-
Buenos días!!!, gracias por contestar.
Voy a probar y comento mas tarde....
-
-
perfecto!...thank!!!
@hedgehog that's definitely enough memory. So the culprit must be somewhere else. Could you please try to modify this line in
classes/Tools.php
and change it to look like this:'verify' => _PS_TOOL_DIR_.'cacert.pem',
-
-
Hello team
First of all it has been great to learn and know thirty bees.It is far superior than the competitors..so for that Thanks!
Second .. i need your help please. When i am importing the *.csv file the window with the information of the status of the load it get stuck with "linking accessories". The problem is that i dont have that column in the csv file.
When i cancel or stop the proccess i can see that the product were correctly loaded.
There is a way i can avoid or skip the linking accesories? So i can load the data without error?
Thanks for your help!
Regards
Francisco
Product image in order conf email
in Technical help
Posted