elfstone Posted June 28, 2012 Share Posted June 28, 2012 (edited) I would like to align the order confirmation template in the way that the cells of values under reference, product, unit price, quantity, total price would be aligned to top cells. A lot can be done in order_conf.html, but i think that this can't be changed there. Edited June 28, 2012 by elfstone (see edit history) Link to comment Share on other sites More sharing options...
elfstone Posted July 5, 2012 Author Share Posted July 5, 2012 (edited) Can anyone skilled help me here, please. I tried changing order_conf.html and PaymentModule.php. Edited July 5, 2012 by elfstone (see edit history) Link to comment Share on other sites More sharing options...
forkless Posted July 15, 2012 Share Posted July 15, 2012 (edited) Not sure if I'm skilled but I'll give it a go anyways Edit your /classes/PaymentModule.php and add some spans around the output of the actual values in the HTML output of the functions invoked. For this you look up the HTML output section for the products (2 instances) and vouchers (1 instance); First section at lines 316-318 (on PS 1.4.8.2) The lines look as follows after adding the <span style="float: right;"> tags; <td style="padding: 0.6em 0.4em; text-align: right;"><span style="float: right;">'.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt, $currency, false).'</span></td> <td style="padding: 0.6em 0.4em; text-align: center;"><span style="float: right;">'.$customizationQuantity.'</span></td> <td style="padding: 0.6em 0.4em; text-align: right;"><span style="float: right;">'.Tools::displayPrice($customizationQuantity * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt), $currency, false).'</span></td> Rinse and repeat for lines 327-329 Then go to line 410 (this is for the vouchers) and change that to; <td style="padding: 0.6em 0.4em; text-align: right;"><span style="float: right;">'.($value != 0.00 ? '-' : '').Tools::displayPrice($value, $currency, false).'</span></td> It should look something similar to this; Hope that helps PS. In my sample I floated the quantity to the right too. Edited July 15, 2012 by forkless (see edit history) Link to comment Share on other sites More sharing options...
elfstone Posted July 16, 2012 Author Share Posted July 16, 2012 Thank you for trying. This seams to be a little different in 1.5 version. I tried to do what you suggested and received an error. I am attaching another image of what is my problem, and i think all versions 1.5 have this problem. Link to comment Share on other sites More sharing options...
pefa Posted August 13, 2012 Share Posted August 13, 2012 Not sure if I'm skilled but I'll give it a go anyways Edit your /classes/PaymentModule.php and add some spans around the output of the actual values in the HTML output of the functions invoked. For this you look up the HTML output section for the products (2 instances) and vouchers (1 instance); First section at lines 316-318 (on PS 1.4.8.2) The lines look as follows after adding the <span style="float: right;"> tags; <td style="padding: 0.6em 0.4em; text-align: right;"><span style="float: right;">'.Tools::displayPrice(Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt, $currency, false).'</span></td> <td style="padding: 0.6em 0.4em; text-align: center;"><span style="float: right;">'.$customizationQuantity.'</span></td> <td style="padding: 0.6em 0.4em; text-align: right;"><span style="float: right;">'.Tools::displayPrice($customizationQuantity * (Product::getTaxCalculationMethod() == PS_TAX_EXC ? $price : $price_wt), $currency, false).'</span></td> Rinse and repeat for lines 327-329 Then go to line 410 (this is for the vouchers) and change that to; <td style="padding: 0.6em 0.4em; text-align: right;"><span style="float: right;">'.($value != 0.00 ? '-' : '').Tools::displayPrice($value, $currency, false).'</span></td> It should look something similar to this; Hope that helps PS. In my sample I floated the quantity to the right too. Hey, are you writing about modifiying 410 line in /classes/PaymentModule.php ? regards Link to comment Share on other sites More sharing options...
Recommended Posts