Jump to content
thirty bees forum

Francisco Ampuero

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Francisco Ampuero

  1. 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">&nbsp;</td>
    				<td>
    					<img src="{$link->getImageLink($product['link_rewrite'], $product['id_image'], 'cart')}" alt="{$product['name']}" />
    				</td>
    				<td width="10">&nbsp;</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:

    image.png.aca316b374033a29df0bc7451202bd43.png

    Gracias!!!!!!

    Funciona perfecto TB11

  2. 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 

    LinkingAccessories.jpg

×
×
  • Create New...