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

#   Adding Print Label Button in Admin Orders

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 3 months ago [\#210329](#210329) by [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")  *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#210329 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")* was created by *[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.

Hi,

What's the best way to approach this?
I want to add a "Print Label" button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end.
So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a "Print Label" button at the top or bottom somewhere.

What's the best way to do this or similar? What functions etc can I use and how do I access those areas?

Thank you so much.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODUzMS1hZGRpbmctcHJpbnQtbGFiZWwtYnV0dG9uLWluLWFkbWluLW9yZGVycz90bXBsPW1hcmtkb3du) 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: 86540
- Thank you received: 14300
-
-

11 years 3 months ago [\#210346](#210346) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#210346 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Hi,

You can edit the file "show" of the view "order" for your backend template via the menu Display&gt;Views.
There you can add your label code at the top of the file and it will display on the order details page in the backend.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

11 years 3 months ago [\#210401](#210401) by [jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")  Replied by *[jdouglas](/forum/user/38148-jdouglas "View jdouglas's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#210401 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Thank you Nicolas,
This is exactly what I needed.

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

6 years 6 months ago [\#318259](#318259) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#318259 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Hi Nicolas,

What could be the shipping label code to add:
Name, Surname, Address with postal code, city, region and country
Telephone and order number.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODUzMS1hZGRpbmctcHJpbnQtbGFiZWwtYnV0dG9uLWluLWFkbWluLW9yZGVycz90bXBsPW1hcmtkb3du) 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: 86540
- Thank you received: 14300
-
-

6 years 6 months ago [\#318270](#318270) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#318270 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Hi,

I'm sorry but I don't understand what is your question here ?

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

6 years 6 months ago -  6 years 6 months ago [\#318318](#318318) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#318318 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Hi Nicolas,
I thought that it is useful for me to print together with the shipping invoice, one more page with the shipping address, adding the following code at the end of the order / invoice view:

_________________________________________________
&lt;div style="page-break-before:always"&gt;
&lt;?php if(!empty($this-&gt;element-&gt;order_shipping_id) &amp;&amp; !empty($this-&gt;element-&gt;shipping_address)){
?&gt;
&lt;fieldset class="adminform" id="htmlfieldset_shipping"&gt;
&lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS'); ?&gt;&lt;/legend&gt;
&lt;?php
if(empty($this-&gt;element-&gt;override_shipping_address)) {
$addressClass = hikashop_get('class.address');
echo $addressClass-&gt;displayAddress($this-&gt;element-&gt;fields, $this-&gt;element-&gt;shipping_address, 'order');
} else {
echo $this-&gt;element-&gt;override_shipping_address;
}
?&gt;
&lt;/fieldset&gt;
&lt;?php
}
?&gt;&lt;/div&gt;
_________________________________________________

But I get both invoice and invoice shipping, also I would like the CIF field and the phone field not to appear.

How can I do it?

Thank you

- [ ![Sinttulo-1&#95;2020-04-30.jpg](/forum/attachment/49230) ](/forum/attachment/49230 "...2020-04-30.jpg") [ ](/forum/attachment/49230?download=1 "...2020-04-30.jpg")

Last edit: 6 years 6 months ago by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODUzMS1hZGRpbmctcHJpbnQtbGFiZWwtYnV0dG9uLWluLWFkbWluLW9yZGVycz90bXBsPW1hcmtkb3du) 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: 86540
- Thank you received: 14300
-
-

6 years 6 months ago [\#318327](#318327) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#318327 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Hi,

To do it only for the shipping invoice you could add such line before your code: Code:

&lt;?php if($this-&gt;invoice_type=='full') return; ?&gt;

If you want to remove some fields from the address display, you can change the "address format" setting of the HikaShop configuration.
Note that this will affect both your code and the address display on the checkout, order and invoice too.
If you want it to affect only your code, you would have to not call displayAddress and directly echo the data of the address from $this-&gt;element-&gt;shipping_address. For example:
echo $this-&gt;element-&gt;shipping_address-&gt;address_city;

The following user(s) said Thank You: [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

6 years 6 months ago [\#318480](#318480) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Adding Print Label Button in Admin Orders](/forum/35-orders-management/878531-adding-print-label-button-in-admin-orders#318480 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.1 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : No error, I need to get a print label button and functionality on the backend in the admin for each order.  Hi,  What's the best way to approach this? I want to add a &quot;Print Label&quot; button for each order. That button will link to the shipping provider etc etc. I really need to know how to access those sections in the back end. So maybe when the admin clicks on an order in the backend configuration-&gt;order lists. Maybe on the order information display, there will be a &quot;Print Label&quot; button at the top or bottom somewhere.  What's the best way to do this or similar? What functions etc can I use and how do I access those areas?  Thank you so much.")*

Thanks Nicolas

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

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