Jump to content

[SOLVED] How to delete table cell from {products} within order_conf.html?


Recommended Posts

Hi  :)

 

When a customer finishes the order, the "order confirmation" mail is sent.

 

As you can see on the attached image, an extra table cell is created at the begining and i would like to remove it.
But that can't be done within order_conf.html file!

 

Which php file should i modify? Becuase i'm assuming this is stored in {products} variable.

 

I'm using PS 1.5.4.1

 

Thank you and best regards,

Housy

post-33160-0-57760200-1392676284_thumb.jpg

Edited by Housy (see edit history)
Link to comment
Share on other sites

classes/PaymentModule.php

			$products_list .=
							'<tr style="background-color: '.($key % 2 ? '#DDE2E6' : '#EBECEE').';">
								<td style="padding: 0.6em 0.4em;width: 15%;">'.$product['reference'].'</td>
								<td style="padding: 0.6em 0.4em;width: 30%;"><strong>'.$product['name'].(isset($product['attributes']) ? ' - '.$product['attributes'] : '').'</strong></td>
								<td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice(Product::getTaxCalculationMethod((int)$this->context->customer->id) == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt, $this->context->currency, false).'</td>
								<td style="padding: 0.6em 0.4em; width: 15%;">'.((int)$product['cart_quantity'] - $customization_quantity).'</td>
								<td style="padding: 0.6em 0.4em; width: 20%;">'.Tools::displayPrice(((int)$product['cart_quantity'] - $customization_quantity) * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? Tools::ps_round($price, 2) : $price_wt), $this->context->currency, false).'</td>
							</tr>';
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...