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

#   Add page numbers to invoice

##

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

Less More

- Posts: 33
- Thank you received: 2
-
-

7 years 2 months ago [\#310355](#310355) by [softdune](/forum/user/58135-softdune "View softdune's Profile")  *[Add page numbers to invoice](/forum/35-orders-management/898186-add-page-numbers-to-invoice#310355 "-- url of the page with the problem -- :   www.softdune.com/  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.3.4 -- Browser(s) name and version -- : Chrome 73.0.3683.103   Is there an way to add the page number and total number of pages on the Invoice. Example: &quot;pages: 2/4&quot;")* was created by *[softdune](/forum/user/58135-softdune "View softdune's Profile")*

-- url of the page with the problem -- : [ www.softdune.com/](https://www.softdune.com/)
-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.5
-- PHP version -- : 7.3.4
-- Browser(s) name and version -- : Chrome 73.0.3683.103 

Is there an way to add the page number and total number of pages on the Invoice.
Example: "pages: 2/4"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5ODE4Ni1hZGQtcGFnZS1udW1iZXJzLXRvLWludm9pY2U/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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

7 years 2 months ago [\#310356](#310356) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add page numbers to invoice](/forum/35-orders-management/898186-add-page-numbers-to-invoice#310356 "-- url of the page with the problem -- :   www.softdune.com/  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.3.4 -- Browser(s) name and version -- : Chrome 73.0.3683.103   Is there an way to add the page number and total number of pages on the Invoice. Example: &quot;pages: 2/4&quot;")*

Hi,

As per this page, you should be able to use these tags in the "footer" setting of the PDF invoice plugin: Code:

[[page_cu]]/[[page_nb]]

[ stackoverflow.com/questions/6386599/html2pdf-page-numbering](https://stackoverflow.com/questions/6386599/html2pdf-page-numbering)

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

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

Less More

- Posts: 33
- Thank you received: 2
-
-

7 years 2 months ago [\#310387](#310387) by [softdune](/forum/user/58135-softdune "View softdune's Profile")  Replied by *[softdune](/forum/user/58135-softdune "View softdune's Profile")* on topic *[Add page numbers to invoice](/forum/35-orders-management/898186-add-page-numbers-to-invoice#310387 "-- url of the page with the problem -- :   www.softdune.com/  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.3.4 -- Browser(s) name and version -- : Chrome 73.0.3683.103   Is there an way to add the page number and total number of pages on the Invoice. Example: &quot;pages: 2/4&quot;")*

Is there a way to do this without the need to buy the HTML2PDF plugin?

I'm currently creating the PDF by pressing the 'PRINT' button during the display of the INVOICE.

You can find it in the invoice.php

&lt;div id="print" style="float:right"&gt;
&lt;a class="btn btn-primary" href="#" onclick="document.getElementById('print').style.visibility='hidden';window.focus();window.print();return false;"&gt;
&lt;i class="fa fa-print"&gt;&lt;/i&gt; &lt;?php echo JText::_('HIKA_PRINT'); ?&gt;
&lt;/a&gt;
&lt;/div&gt;

This opens a screen (which looks like PDF).
In the options it allows to select the Headers/Footers.
The footer includes the page numbering.
But there is information in the footer/header which I would not like to have on my invoice: example: URL of page...

The footer looks like:
[ www.mysite.com/administrator/index.php?o...=order&amp;task=edit&amp;cid](https://www.mysite.com/administrator/index.php?option=com_hikashop&ctrl=order&task=edit&cid)[]=91&amp;cancel_redirect=L2FkbWluaXN0cmF0b… 1/2

Do you know how to change these inputs?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5ODE4Ni1hZGQtcGFnZS1udW1iZXJzLXRvLWludm9pY2U/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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

7 years 2 months ago [\#310431](#310431) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add page numbers to invoice](/forum/35-orders-management/898186-add-page-numbers-to-invoice#310431 "-- url of the page with the problem -- :   www.softdune.com/  -- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.5 -- PHP version -- : 7.3.4 -- Browser(s) name and version -- : Chrome 73.0.3683.103   Is there an way to add the page number and total number of pages on the Invoice. Example: &quot;pages: 2/4&quot;")*

Hi,

The footer/header you see there are generated by your browser.
There are some tricks to display HTML on these areas, but it won't work in some browsers and it's a bit cluncky to implement:
[ stackoverflow.com/questions/20050939/pri...s-when-printing-html](https://stackoverflow.com/questions/20050939/print-page-numbers-on-pages-when-printing-html)

With the PDF invoice plugin, footer and header is part of the way PDF files work so it's much more easy to do.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5ODE4Ni1hZGQtcGFnZS1udW1iZXJzLXRvLWludm9pY2U/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.067 seconds

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