Post by skip » Sun Jun 10, 2018 11:32 pm

Hi, how to delete shipping line from invoice only ?
image is in attachement,
version 2011 admin/controller/sale/order.php is in attachement also

Attachments

invocie.jpg

invocie shipping - invocie.jpg (153.3 KiB) Viewed 195 times

admin/controller/sale/order.php


Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by straightlight » Sun Jun 10, 2018 11:40 pm

In admin/view/template/sale/order_invoice.tpl file, remove this portion:

Code: Select all

<?php if ($order['shipping_method']) { ?>
            <b><?php echo $text_shipping_method; ?></b> <?php echo $order['shipping_method']; ?><br />
            <?php } ?>
            
This should resolved the issue.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by skip » Mon Jun 11, 2018 5:14 am

@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:

Code: Select all

<td class="text-right"><?php echo $total['text']; ?></td>
3 varialbes is in $total['text']; so job must be made in controller (or model) dont know

Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by straightlight » Mon Jun 11, 2018 8:51 pm

The line I provided above is for shipping … not for the payment method ...

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by skip » Mon Jun 11, 2018 9:05 pm

pardon, your code is for removing " Shipping Method: Flat Shipping Rate "
but I need Shipping rate with amounth in table before total (check on image please)

Active Member

Posts

Joined
Mon May 09, 2011 9:57 pm

Post by straightlight » Mon Jun 11, 2018 11:44 pm

If you need the shipping amount to show before the total, simply edit the sort order value from your admin - > extensions - > extensions - > shipping page.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: thekrotek and 22 guests