Hi, how to delete shipping line from invoice only ?
image is in attachement,
version 2011 admin/controller/sale/order.php is in attachement also
image is in attachement,
version 2011 admin/controller/sale/order.php is in attachement also
Attachments
invocie shipping - invocie.jpg (153.3 KiB) Viewed 646 times
admin/controller/sale/order.php
In admin/view/template/sale/order_invoice.tpl file, remove this portion:
This should resolved the issue.
Code: Select all
<?php if ($order['shipping_method']) { ?>
<b><?php echo $text_shipping_method; ?></b> <?php echo $order['shipping_method']; ?><br />
<?php } ?>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
@straightlight This code is remove "Payment Method: Cash On Delivery" - not connected with line i search. I realize that it is not posible remove in template file only , this line is responsible for subtotal, flat shipping rate and total in table calculation:
3 varialbes is in $total['text']; so job must be made in controller (or model) dont know
Code: Select all
<td class="text-right"><?php echo $total['text']; ?></td>
The line I provided above is for shipping … not for the payment method ...
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
If you need the shipping amount to show before the total, simply edit the sort order value from your admin - > extensions - > extensions - > shipping page.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 116 guests