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

#   how to show weight in sales backend

##

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 7 months ago -  14 years 7 months ago [\#46330](#46330) by [loling](/forum/user/989-loling "View loling's Profile")  *[how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46330 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")* was created by *[loling](/forum/user/989-loling "View loling's Profile")*

Hi Nikolas

how to display weight in total and per product quantity at back end?
like below pictures
[ ![a.jpg](/forum/attachment/3420) ](/forum/attachment/3420 "a.jpg")

and
[ ![b.jpg](/forum/attachment/3421) ](/forum/attachment/3421 "b.jpg")

If it is not doable, how to include total weight in email notification to administrator??
like 'new order has been created... order (number).. sub total (number)... weight (number)'

Or any other way to inform administrator the total weight of one order??

Thanks

- [ ![a.jpg](/forum/attachment/3420) ](/forum/attachment/3420 "a.jpg") [ ](/forum/attachment/3420?download=1 "a.jpg")
- [ ![b.jpg](/forum/attachment/3421) ](/forum/attachment/3421 "b.jpg") [ ](/forum/attachment/3421?download=1 "b.jpg")

Last edit: 14 years 7 months ago by [loling](/forum/user/989-loling "View loling's Profile").

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

14 years 7 months ago [\#46412](#46412) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46412 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

That information is not stored in the orders.

You can always edit the view file and load the data from the product, and do the maths but it's complex if you're not a programmer.

For the order creation email, it should be simpler I think. Try to add such code in it:
Total weight: &lt;?php echo $data-&gt;cart-&gt;weight; ?&gt;

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 7 months ago [\#46494](#46494) by [loling](/forum/user/989-loling "View loling's Profile")  Replied by *[loling](/forum/user/989-loling "View loling's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46494 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

i think order creation email will do the job, where do i insert that code into??

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

14 years 7 months ago [\#46500](#46500) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46500 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

In the "order creation notification" email that you can edit via the menu System-&gt;Emails in the Business edition.

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 7 months ago [\#46513](#46513) by [loling](/forum/user/989-loling "View loling's Profile")  Replied by *[loling](/forum/user/989-loling "View loling's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46513 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

how to do it in starter edition??

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

14 years 7 months ago [\#46535](#46535) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46535 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

You can edit the file in the folder media/com_hikashop/mail but beware that unlike when you do it via the interface, you will loose your changes when you update HikaShop.

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#46853](#46853) by [loling](/forum/user/989-loling "View loling's Profile")  Replied by *[loling](/forum/user/989-loling "View loling's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46853 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

so i edited order_admin_notification.text.php file in media/com_hikashop/mail/ into something like below. i have tried *Total weight: &lt;?php echo $data-&gt;cart-&gt;weight; ?&gt;*, *Total weight: $data-&gt;cart-&gt;weight;*, and *echo "\\r\\n".JText::\_('CART\_WEIGHT').' : '.$data-&gt;cart-&gt;weight;* .. Nothing works, please help ![=|](/neutral.gif "=|")

&lt;?php
$url = HIKASHOP_LIVE.'administrator/index.php?option=com_hikashop&amp;ctrl=order&amp;task=edit&amp;order_id='.$data-&gt;order_id;
echo JText::sprintf('ORDER_STATUS_CHANGED',$data-&gt;mail_status)."\r\n".JText::sprintf('NOTIFICATION_OF_ORDER_ON_WEBSITE',$data-&gt;order_number,HIKASHOP_LIVE);
echo $data-&gt;cart-&gt;weight;
$currency = hikashop_get('class.currency');
echo "\r\n".JText::_('HIKASHOP_TOTAL').' : '.$currency-&gt;format($data-&gt;order_full_price,$data-&gt;order_currency_id);
echo "\r\n".str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('ACCESS_ORDER_WITH_LINK',$url));
if($data-&gt;order_payment_method=='creditcard' &amp;&amp; !empty($data-&gt;credit_card_info-&gt;cc_number)){
echo "\r\n".JText::_('CUSTOMER_PAID_WITH_CREDIT_CARD');
if(!empty($data-&gt;credit_card_info-&gt;cc_owner)){
echo "\r\n".JText::_('CREDIT_CARD_OWNER').' : '.$data-&gt;credit_card_info-&gt;cc_owner;
}
echo "\r\n".JText::_('END_OF_CREDIT_CARD_NUMBER').' : '.substr($data-&gt;credit_card_info-&gt;cc_number,![8)](/media/kunena/emoticons/9.png "8)");
if(!empty($data-&gt;credit_card_info-&gt;cc_CCV)){
echo "\r\n".JText::_('CARD_VALIDATION_CODE').' : '.$data-&gt;credit_card_info-&gt;cc_CCV;
}
echo "\r\n".JText::_('CREDITCARD_WARNING');
}
$fieldsClass = hikashop_get('class.field');
$fields = $fieldsClass-&gt;getFields('frontcomp',$data,'order','');
foreach($fields as $fieldName =&gt; $oneExtraField) {
echo "\r\n".$fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName);
}

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

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

14 years 6 months ago [\#46942](#46942) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46942 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

You should edit the html version, not the text version of the email which is rarely displayed by email clients.

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

14 years 6 months ago [\#46958](#46958) by [loling](/forum/user/989-loling "View loling's Profile")  Replied by *[loling](/forum/user/989-loling "View loling's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#46958 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

i have edited the html version as well, but it is not showing either.

When i tried to insert *Total weight: $data-&gt;cart-&gt;weight;* or *echo "\\r\\n".JText::\_('CART\_WEIGHT').' : '.$data-&gt;cart-&gt;weight;* ,, the 'Total weight:' was shown, but there was no total weight for that order. so the email that admin receives is like this:

The order is now created.
Order C1A0N70
Total Weight:
Sub Total : Rp 72.000
You can access the order details directly by clicking on the link below after logging in your back end:
[ www.kliknshop.com/administrator/index.ph...k=edit&amp;order\_id=1070](http://www.kliknshop.com/administrator/index.php?option=com_hikashop&ctrl=order&task=edit&order_id=1070)

Where did i do wrong??

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

14 years 6 months ago [\#47065](#47065) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#47065 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

Then if that doesn't work you'll have to calculate the weight yourself...
It can be done with a few lines:
$class = hikashop_get('class.product');
$weight = 0;
foreach($data-&gt;cart-&gt;products as $prod){
$info = $class-&gt;get($prod-&gt;product_id);
$weight +=$info-&gt;product_weight*$prod-&gt;order_product_quantity;
}
echo $weight;

That should be done after:
$data-&gt;cart = $class-&gt;loadFullOrder($data-&gt;order_id,true,false);

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 6 months ago [\#47339](#47339) by [clunky](/forum/user/986-clunky "View clunky's Profile")  Replied by *[clunky](/forum/user/986-clunky "View clunky's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#47339 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

Hi
Apologies for hijacking on this thread but this is exactly what I would like to achieve as well.
I would also like to be able to show hazardous products with a combined weight/fluid volume too, is there a way of pulling this through in the same way?

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

14 years 6 months ago [\#47687](#47687) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to show weight in sales backend](/forum/4-how-to/46330-how-to-show-weight-in-sales-backend#47687 "Hi Nikolas  how to display weight in total and per product quantity at back end? like below pictures  and  If it is not doable, how to include total weight in email notification to administrator?? like 'new order has been created... order (number).. sub total (number)... weight (number)'  Or any other way to inform administrator the total weight of one order??  Thanks")*

Yes, it's basically the same... Just replace $info-&gt;product_weight by ($info-&gt;product_width*$info-&gt;product_length*$info-&gt;product_height)

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

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