[Skip to main content](#vessel-content)

#   invoice numbers on pdf invoice do not match with order

##

- **[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")**
- [![herb200mph's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46118-herb200mph "View herb200mph's Profile") Topic Author
- [ Offline](/forum/user/46118-herb200mph)

Less More

- Posts: 81
- Thank you received: 0
-
-

9 years 6 months ago [\#268684](#268684) by [herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")  *[invoice numbers on pdf invoice do not match with order](/forum/35-orders-management/890059-invoice-numbers-on-pdf-invoice-do-not-match-with-order#268684 "-- url of the page with the problem -- :   shop.justducks.co.uk  -- HikaShop version -- : 3.0.0 BUSINESS -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : All  Installed &quot;AttachInvoice&quot; PDF Plugin and it generates the attachment to the email properly.  However, the ORDER NUMBER in the confirmation email is: JD17-M2F58  The INVOICE NUMBER on the attached PDF is: JD-17-G1K47  The ORDER NUMBER does not appear anywhere on the PDF document.  Please advise resolution to present the same INVOICE NUMBER on the PDF as the ORDER NUMBER on the email/system admin.  Thank you.")* was created by *[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")*

-- url of the page with the problem -- : [ shop.justducks.co.uk](http://shop.justducks.co.uk)
-- HikaShop version -- : 3.0.0 BUSINESS
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : All

Installed "AttachInvoice" PDF Plugin and it generates the attachment to the email properly.

However, the ORDER NUMBER in the confirmation email is: JD17-M2F58

The INVOICE NUMBER on the attached PDF is: JD-17-G1K47

The ORDER NUMBER does not appear anywhere on the PDF document.

Please advise resolution to present the same INVOICE NUMBER on the PDF as the ORDER NUMBER on the email/system admin.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDA1OS1pbnZvaWNlLW51bWJlcnMtb24tcGRmLWludm9pY2UtZG8tbm90LW1hdGNoLXdpdGgtb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")**
- [![herb200mph's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46118-herb200mph "View herb200mph's Profile") Topic Author
- [ Offline](/forum/user/46118-herb200mph)

Less More

- Posts: 81
- Thank you received: 0
-
-

9 years 6 months ago [\#268685](#268685) by [herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")  Replied by *[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")* on topic *[invoice numbers on pdf invoice do not match with order](/forum/35-orders-management/890059-invoice-numbers-on-pdf-invoice-do-not-match-with-order#268685 "-- url of the page with the problem -- :   shop.justducks.co.uk  -- HikaShop version -- : 3.0.0 BUSINESS -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : All  Installed &quot;AttachInvoice&quot; PDF Plugin and it generates the attachment to the email properly.  However, the ORDER NUMBER in the confirmation email is: JD17-M2F58  The INVOICE NUMBER on the attached PDF is: JD-17-G1K47  The ORDER NUMBER does not appear anywhere on the PDF document.  Please advise resolution to present the same INVOICE NUMBER on the PDF as the ORDER NUMBER on the email/system admin.  Thank you.")*

Amending Question:

How can we print the System ORDER NUMBER on the PDF to show both ORDER and INVOICE numbers.

Rather confusing to both the customer and admin for referencing numbers.

We would like to display BOTH the ORDER NUMBER and INVOICE NUMBER on the PDF document.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDA1OS1pbnZvaWNlLW51bWJlcnMtb24tcGRmLWludm9pY2UtZG8tbm90LW1hdGNoLXdpdGgtb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

9 years 6 months ago [\#268687](#268687) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[invoice numbers on pdf invoice do not match with order](/forum/35-orders-management/890059-invoice-numbers-on-pdf-invoice-do-not-match-with-order#268687 "-- url of the page with the problem -- :   shop.justducks.co.uk  -- HikaShop version -- : 3.0.0 BUSINESS -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : All  Installed &quot;AttachInvoice&quot; PDF Plugin and it generates the attachment to the email properly.  However, the ORDER NUMBER in the confirmation email is: JD17-M2F58  The INVOICE NUMBER on the attached PDF is: JD-17-G1K47  The ORDER NUMBER does not appear anywhere on the PDF document.  Please advise resolution to present the same INVOICE NUMBER on the PDF as the ORDER NUMBER on the email/system admin.  Thank you.")*

Hi,

You need to edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php and add your custom code below the line:
&lt;div class="invoicetitle"&gt;&lt;?php echo $number.$order-&gt;order_invoice_number; ?&gt;&lt;/div&gt;

For example:
&lt;div class="invoicetitle"&gt;Order number: &lt;?php echo $order-&gt;order_number; ?&gt;&lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDA1OS1pbnZvaWNlLW51bWJlcnMtb24tcGRmLWludm9pY2UtZG8tbm90LW1hdGNoLXdpdGgtb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")**
- [![herb200mph's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46118-herb200mph "View herb200mph's Profile") Topic Author
- [ Offline](/forum/user/46118-herb200mph)

Less More

- Posts: 81
- Thank you received: 0
-
-

9 years 6 months ago [\#268740](#268740) by [herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")  Replied by *[herb200mph](/forum/user/46118-herb200mph "View herb200mph's Profile")* on topic *[invoice numbers on pdf invoice do not match with order](/forum/35-orders-management/890059-invoice-numbers-on-pdf-invoice-do-not-match-with-order#268740 "-- url of the page with the problem -- :   shop.justducks.co.uk  -- HikaShop version -- : 3.0.0 BUSINESS -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : All  Installed &quot;AttachInvoice&quot; PDF Plugin and it generates the attachment to the email properly.  However, the ORDER NUMBER in the confirmation email is: JD17-M2F58  The INVOICE NUMBER on the attached PDF is: JD-17-G1K47  The ORDER NUMBER does not appear anywhere on the PDF document.  Please advise resolution to present the same INVOICE NUMBER on the PDF as the ORDER NUMBER on the email/system admin.  Thank you.")*

Thank you. We have performed the modification and will test the results.

Regards.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDA1OS1pbnZvaWNlLW51bWJlcnMtb24tcGRmLWludm9pY2UtZG8tbm90LW1hdGNoLXdpdGgtb3JkZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
