We are creating the Tips module. When the Tips module is activated at the admin section from Admin | Extensions | Order Totals, it will be listed in the Order Totals listing page, and you will see the Tips module activated at Shopping Cart. After entering the amount and clicking on the Apply Tips button, the extra amount is added to the order total, which adds to the total cost of the order.
To create a language file for the Order Total module, we have to create the file at the total folder in the language folder. Navigate to admin/language/english/total/
, and create a tips.php
file and insert the following lines of code:
<?php $_['heading_title'] = 'Tips Fee'; $_['text_total'] = 'Order Totals'; $_['text_success'] = 'Success: You have modified tips fee total!'; $_['entry_total'] = 'Order Total:'; $_['entry_fee'] = 'Fee:'; $_['entry_tax_class'] = 'Tax Class:'; $_['entry_status'] = 'Status:'; $_['entry_sort_order...