Invoice in Frontend is Different to Invoice in backend

  • Posts: 77
  • Thank you received: 8
  • Hikashop Business
6 years 10 months ago #271852

Hi I have modified the invoice file
order / invoice.php to include some custom fields as follows

<?php echo $this->order->customer->student; ?> |  <?php echo $this->order->customer->dob; ?>
This places a name and date of birth into my invoice when i click on the "invoice" button in the backend.
Display>Frontend is set to Yes on the fields


However the customer invoice accessed via Account Details > Orders in the frontend does not contain my custom fields - its opening the following URL
xxxx/order/invoice/order_id-6/tmpl-component.html

How can I locate / edit the frontend invoice file please.

Related posts
www.hikashop.com/forum/2-general-talk-ab...hipping-invoice.html
www.hikashop.com/forum/orders-management...-invoice-orders.html

Last edit: 6 years 10 months ago by huwhuw.

Please Log in or Create an account to join the conversation.

  • Posts: 4509
  • Thank you received: 611
  • MODERATOR
6 years 10 months ago #271870

Hello,

You will find this file in Order/show view, like this :



Hope this will help you to achieved your aim.

Regards

Attachments:
Last edit: 6 years 10 months ago by Philip.
The following user(s) said Thank You: huwhuw

Please Log in or Create an account to join the conversation.

  • Posts: 77
  • Thank you received: 8
  • Hikashop Business
6 years 10 months ago #272079

Hi I tried modifying that file order / show.php but it has no effect on the popup / print output for the invoice in the frontend
e.g i commented out the php on line 108 but the Lang entry still loads in the print invoice

<legend style="background-color: #FFFFFF;"><?//php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?></legend>
UPDATE - SORRY IT WORKS I HAD TO PICK THE SHOW.PHP FILE RELATED TO MY FRONTEND TEMPLATE!

thanks for the help.

Last edit: 6 years 10 months ago by huwhuw.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum