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

#   display weight of products in invoice

##

- **[designer71](/forum/user/39268-designer71 "View designer71's Profile")**
- [![designer71's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/39268-designer71 "View designer71's Profile") Topic Author
- [ Offline](/forum/user/39268-designer71)

Less More

- Posts: 78
- Thank you received: 4
-
-

1 month 1 week ago [\#373388](#373388) by [designer71](/forum/user/39268-designer71 "View designer71's Profile")  *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373388 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")* was created by *[designer71](/forum/user/39268-designer71 "View designer71's Profile")*

-- HikaShop version -- : 6.6.0
-- Joomla version -- : 6.1.3

Hi!
How to display weight of products in HikaShop - generate PDF invoice plugin?

thank you

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

1 month 1 week ago [\#373391](#373391) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373391 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")*

Hi,

The PDF invoice plugin already supports this, through three hidden settings of the HikaShop configuration (they apply to the normal invoice too):
- show_invoice_unit_weight: adds a column with the weight of one unit of each product
- show_invoice_total_weight: adds a column with the weight of each line (unit weight x quantity)
- show_invoice_weight: adds the total weight of the order below the totals

There is no option for them in the configuration page, so you need to add them in your database, with phpMyAdmin for example. Replace xxx_ with the prefix of your tables and only keep the lines you want: Code:

INSERT INTO xxx_hikashop_config (config_namekey, config_value, config_default) VALUES ('show_invoice_unit_weight', '1', '1'), ('show_invoice_total_weight', '1', '1'), ('show_invoice_weight', '1', '1') ON DUPLICATE KEY UPDATE config_value = '1';

If you use the shipping invoice as well, the same settings exist for it with shipping_ in front of invoice: show_shipping_invoice_unit_weight, show_shipping_invoice_total_weight and show_shipping_invoice_weight.

Note that the weight comes from what was stored in the order when it was created, not from the current product data. So the columns only appear on orders whose products had a weight at that time.

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

- **[designer71](/forum/user/39268-designer71 "View designer71's Profile")**
- [![designer71's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/39268-designer71 "View designer71's Profile") Topic Author
- [ Offline](/forum/user/39268-designer71)

Less More

- Posts: 78
- Thank you received: 4
-
-

1 month 1 week ago [\#373399](#373399) by [designer71](/forum/user/39268-designer71 "View designer71's Profile")  Replied by *[designer71](/forum/user/39268-designer71 "View designer71's Profile")* on topic *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373399 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")*

Hi!
Thank you!
And please, any way to display weight on checkout?
only for info.

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

1 month 1 week ago [\#373400](#373400) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373400 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")*

Hi,

There is no setting for that on the checkout, but you can add it with a small view override. Go to Display &gt; Views in the HikaShop backend, filter on the checkout view of your front end template and edit show_block_cart. Just after the line &lt;/table&gt;, add: Code:

&lt;?php if(!empty($cart-&gt;weight) &amp;&amp; $cart-&gt;weight &gt; 0) { ?&gt; &lt;p class="hikashop_checkout_cart_weight"&gt;&lt;?php echo \Joomla\CMS\Language\Text::_('TOTAL_WEIGHT') . ': ' . rtrim(rtrim(number_format($cart-&gt;weight, 3, '.', ''), '0'), '.') . ' ' . $cart-&gt;weight_unit; ?&gt;&lt;/p&gt; &lt;?php } ?&gt;

This displays the total weight of the cart below the cart block of the checkout, in the weight unit of your shop, and only when the products have a weight. Note that once a view is overridden, the changes we make to that file in future HikaShop versions are not applied to your copy.

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

- **[designer71](/forum/user/39268-designer71 "View designer71's Profile")**
- [![designer71's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/39268-designer71 "View designer71's Profile") Topic Author
- [ Offline](/forum/user/39268-designer71)

Less More

- Posts: 78
- Thank you received: 4
-
-

1 month 1 week ago [\#373408](#373408) by [designer71](/forum/user/39268-designer71 "View designer71's Profile")  Replied by *[designer71](/forum/user/39268-designer71 "View designer71's Profile")* on topic *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373408 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")*

Great! Thank you!

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

- **[designer71](/forum/user/39268-designer71 "View designer71's Profile")**
- [![designer71's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/39268-designer71 "View designer71's Profile") Topic Author
- [ Offline](/forum/user/39268-designer71)

Less More

- Posts: 78
- Thank you received: 4
-
-

1 month 1 week ago -  1 month 1 week ago [\#373410](#373410) by [designer71](/forum/user/39268-designer71 "View designer71's Profile")  Replied by *[designer71](/forum/user/39268-designer71 "View designer71's Profile")* on topic *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373410 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")*

Hi Nicolas
small question, please:
Should the PDF invoice be automatically sent to the buyer and seller upon payment confirmation?
I mean the plugin. attach pdf.
thank you for your patience:)

Last edit: 1 month 1 week ago by [designer71](/forum/user/39268-designer71 "View designer71's Profile").

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

1 month 1 week ago [\#373413](#373413) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[display weight of products in invoice](/forum/27-checkout/910818-display-weight-of-products-in-invoice#373413 "-- HikaShop version -- : 6.6.0 -- Joomla version -- : 6.1.3  Hi! How to display weight of products in HikaShop - generate PDF invoice plugin?  thank you")*

Hi,

Yes, the PDF invoice is attached automatically, you don't need to do anything for each order. When the payment confirms the order, HikaShop sends the order status notification email to the buyer, and the plugin attaches the invoice to it. It is the same if the order is created directly with the confirmed status.

For the seller, the admin notification email doesn't get the invoice. Instead, enter your email address in the "Send a copy to" setting of the plugin. You then receive a copy (in BCC) of the email sent to the buyer, with the invoice attached. You can enter several addresses separated by commas.

Two things to check if the invoice doesn't arrive:
- the "Order status notification" email must be published in HikaShop &gt; System &gt; Emails
- by default, the invoice is only attached when the order gets the confirmed status of your configuration. If you want it for other statuses too, list them in the "Statuses for email attachment" setting of the plugin, for example: confirmed,shipped

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

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

[](#top)
