Editing of both Invoice and Shipping Invoice

  • Posts: 11
  • Thank you received: 0
  • Hikashop Business
3 years 6 months ago #258395

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.5.30
-- Browser(s) name and version -- : chrome

Hello

I want to add the customers email address to both the front end and back end invoices.

Also, I don't want to show either the customers telephone number or their email address on the shipping invoice only.

Editing the address_template affects both the look of the invoice and the shipping invoice. How do I edit the shipping invoice only? Am I missing something here?

Thanks for your help in advance.

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

  • Posts: 24228
  • Thank you received: 3743
  • MODERATOR
3 years 6 months ago #258411

Hi,

In the invoice template, you will find that code

if($this->invoice_type=='full'){
	echo JText::_('INVOICE');
}else{
	echo JText::_('SHIPPING_INVOICE');
}
It allow you to separate code of the invoice from the shipping invoice.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 11
  • Thank you received: 0
  • Hikashop Business
3 years 6 months ago #258444

Hi Jerome

Thanks for the reply.

I've found the invoice template code in my backend, but I've no idea what editing is needed to separate out the two invoices, and to edit them to show customer email and telephone number on invoice only, but not on shipping invoice.

I'm new to this side of Hikashop and have only just begun to explore these elements. A more detailed explanation would be greatly appreciated if you have the time.

Thank you.

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

  • Posts: 69999
  • Thank you received: 10483
  • MODERATOR
3 years 6 months ago #258459

Hi,

You can add such code:

<?php
if($this->invoice_type=='full'){
echo $this->element->billing_address->address_telephone;
echo $this->element->customer->user_email;
} ?>

Please understand that customization is not part of user support. We can give hints but if you need someone to customize the display, please contact a PHP developer who will be able to do that for you.

Last edit: 3 years 6 months ago by nicolas.

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

  • Posts: 19
  • Thank you received: 0
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
4 months 1 week ago #316095

I need to add custom text copy to the PDF invoice attachment. Sample attached. I tried to edit Display > Views > hikamarket - invoice but can't get my copy to show up in the PDF.

Where to edit this? And Shipping Invoice????

This is what I want to appear below the line t hat says
Your membership account will be billed for the purchase.



RETURNS/EXCHANGES
If you would like to return or exchange any item(s) from your order, please send to the below address with your name, member number and a brief explanation if this is for return or exchange. All returns/exchanges must occur within 30 days of receipt.

Margaret Timpson
Club Merchandise Manager
New York Yacht Club
37 West 44th Street
New York, NY 10036
212-201-4330

Attachments:

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

  • Posts: 69999
  • Thank you received: 10483
  • MODERATOR
4 months 1 week ago #316097

Hi,

The PDF invoice cannot be edited via the interface in the backend. You need to edit the file plugins/attachinvoice/attachinvoice/invoice.php, or its override file media/com_hikashop/plugins/invoice.php

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

Time to create page: 0.080 seconds
Powered by Kunena Forum