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

#   Total Weight in Cart

##

- **[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")**
- [![Ed&#95;Hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile") Topic Author
- [ Offline](/forum/user/33922-ed-hika)

Less More

- Posts: 109
- Thank you received: 5
-
-

12 years 1 month ago [\#175969](#175969) by [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")  *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#175969 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")* was created by *[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6

Hello, there.

Good evening!

Please could you let me know the php code to display the total weight in the Cart?

Please see attached for illustration.

Thanks.

Take care!

- [ ![TotalWeightinCart.jpg](/forum/attachment/20198) ](/forum/attachment/20198 "...ightinCart.jpg") [ ](/forum/attachment/20198?download=1 "...ightinCart.jpg")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 1 month ago [\#175977](#175977) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#175977 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hello,
You'll just have to edit the "cart" file of the "product" view of your front-end template via "Hikashop-&gt;Display-&gt;Views" and add these lines : Code:

&lt;th class="hikashop_cart_module_product_weight_title hikashop_cart_title"&gt; Total Weight &lt;/th&gt;

Just after these lines : Code:

&lt;th class="hikashop_cart_module_product_price_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_PRICE'); ?&gt; &lt;/th&gt;

And add these lines : Code:

?&gt; &lt;td class="hikashop_cart_module_product_price_value hikashop_cart_value"&gt; &lt;?php $total_product_weight = $row-&gt;product_weight * $row-&gt;cart_product_quantity; echo $total_product_weight . ' ' . $row-&gt;product_weight_unit ?&gt; &lt;/td&gt; &lt;?php

Just after theses lines Code:

if($this-&gt;params-&gt;get('show_price',1)){ ?&gt; &lt;td class="hikashop_cart_module_product_price_value hikashop_cart_value"&gt; &lt;?php $this-&gt;row=&amp;$row; echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php }

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

- **[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")**
- [![Ed&#95;Hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile") Topic Author
- [ Offline](/forum/user/33922-ed-hika)

Less More

- Posts: 109
- Thank you received: 5
-
-

12 years 1 month ago [\#176174](#176174) by [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")  Replied by *[Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#176174 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Thanks, Mohamed Thelji.

Apologies for not making it clearer before. The view that I was referring to is the "Cart in the Checkout" view (i.e. the checkout/cart.php) file and the total that I am looking for is the sum of the weights of all the products in the cart.

Thanks.

Take care!

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#176207](#176207) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#176207 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

So you need to add the following code in the &lt;tfoot&gt; part of the "checkout / cart" view. Code:

&lt;?php $totalWeight = 0; $weightUnit = ''; foreach($this-&gt;rows as $i =&gt; $row){ if(empty($row-&gt;cart_product_quantity)) continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $totalWeight = $totalWeight + ($row-&gt;product-&gt;weight * $row-&gt;cart_product_quantity); $weightUnit = $row-&gt;product_weight_unit; } ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_payment_title" class="hikashop_cart_payment_title hikashop_cart_title"&gt; &lt;?php echo JText::_('Weight'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_weight_value"&gt; &lt;span class="hikashop_checkout_cart_weight"&gt; &lt;?php echo $totalWeight.' '.$weightUnit; ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

The following user(s) said Thank You: [Ed\_Hika](/forum/user/33922-ed-hika "View Ed&#95;Hika's Profile")

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

11 years 5 months ago [\#206282](#206282) by [Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile")  Replied by *[Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#206282 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,
I am after displaying the total cart weight on checkout as well. I add the above code (from Xavier) to the "checkout / cart.php" view but I am only seeing "Weight 0 kg". I have added a weight to my products but the total weight doesn't seem to be added together and displayed correctly.

Is there something I am missing? Has anyone else had success with the above code?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#206303](#206303) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#206303 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

Please set the error reporting level to "maximum" in the Joomla configuration.
This will give us more informations if any error message is displayed.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

11 years 5 months ago -  11 years 5 months ago [\#206574](#206574) by [Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile")  Replied by *[Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#206574 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

Thanks I have turned on error reporting and these are the errors:

Notice: Undefined property: stdClass::$product in - on line 472
Notice: Trying to get property of non-object in - on line 472

Line 472 is the following from the newly added code:
$totalWeight = $totalWeight + ($row-&gt;product-&gt;weight * $row-&gt;cart_product_quantity);

Sorry, I don't have a lot of PHP knowledge, so my apologies if there is an obvious solution I don't see.

thanks,

Last edit: 11 years 5 months ago by [Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 5 months ago [\#206617](#206617) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#206617 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

My bad, please replace $row-&gt;product-&gt;weight by $row-&gt;product_weight

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

11 years 5 months ago [\#206849](#206849) by [Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile")  Replied by *[Reev3r](/forum/user/11846-reev3r "View Reev3r's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#206849 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

Fantastic.

Changing the to line below, worked perfectly!

$totalWeight = $totalWeight + ($row-&gt;product_weight * $row-&gt;cart_product_quantity);

Thanks!

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

- **[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")**
- [![bsimoes's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar48805.jpg)](/forum/user/48805-bsimoes "View bsimoes's Profile")
- [ Offline](/forum/user/48805-bsimoes)

Less More

- Posts: 45
- Thank you received: 0
-
-

9 years 3 months ago [\#275451](#275451) by [bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")  Replied by *[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275451 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

And in Hikashop 3.1.1 is the same?
I try and the code in show_block_cart.php file and in the line with the code "foreach($this-&gt;rows as $i =&gt; $row){" i've the follow errors:
- Notice: Undefined property: CheckoutViewCheckout::$rows in ...
- Warning: Invalid argument supplied for foreach() in ...

I want to show the total weight of order.

Thanks!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#275452](#275452) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275452 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hello,

HikaShop 3 cart object already contains information about the total weight, information about the package.
In the new cart view, the loop is not more made on $this-&gt;rows but directly in the cart products ; but at the end, it's reading the same information but we do not put cart products into the "rows" variable anymore because you can easily get the cart content.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")**
- [![bsimoes's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar48805.jpg)](/forum/user/48805-bsimoes "View bsimoes's Profile")
- [ Offline](/forum/user/48805-bsimoes)

Less More

- Posts: 45
- Thank you received: 0
-
-

9 years 3 months ago [\#275472](#275472) by [bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")  Replied by *[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275472 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,
Can you help to show the total weight in cart checkout?

Thanks!

Best regards,
Bruno Simões

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

9 years 3 months ago [\#275481](#275481) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275481 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

As Jerome said, the total weight is already calculated for you.
So you just need to display it if you want.
For example, with such code in show_block_cart : Code:

echo $cart-&gt;package[weight']['value'] . ' ' . $cart-&gt;package[weight']['unit'];

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

- **[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")**
- [![bsimoes's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar48805.jpg)](/forum/user/48805-bsimoes "View bsimoes's Profile")
- [ Offline](/forum/user/48805-bsimoes)

Less More

- Posts: 45
- Thank you received: 0
-
-

9 years 3 months ago -  9 years 3 months ago [\#275516](#275516) by [bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")  Replied by *[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275516 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi Nicolas,

Thanks for your help!!

Best regards

Last edit: 9 years 3 months ago by [bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile").

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

- **[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")**
- [![bsimoes's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar48805.jpg)](/forum/user/48805-bsimoes "View bsimoes's Profile")
- [ Offline](/forum/user/48805-bsimoes)

Less More

- Posts: 45
- Thank you received: 0
-
-

9 years 3 months ago [\#275864](#275864) by [bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")  Replied by *[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275864 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,
It is possible add the total weight of order in backend in the detail of a order?
How?

Best regards

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#275866](#275866) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275866 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hello,

I'm afraid that I can't say yes.

Because an order is something fixed in the past ; the products of the order can evolve, change.
It is also possible that the products do not exist anymore in your database.
But HikaShop keep some information at the moment when the ordre is made, like the name or the price. Unfortunately, it cannot save all data of products.

That's why, if the weight is added, it will be an information read from the database and it could be an incorrect information. HikaShop would not have the possibility to know it and warn the user.
That's how it is not something that would be integrated into the HIkaShop core but that's something that you could add in your end thanks to overrides.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")**
- [![bsimoes's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar48805.jpg)](/forum/user/48805-bsimoes "View bsimoes's Profile")
- [ Offline](/forum/user/48805-bsimoes)

Less More

- Posts: 45
- Thank you received: 0
-
-

9 years 3 months ago [\#275908](#275908) by [bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")  Replied by *[bsimoes](/forum/user/48805-bsimoes "View bsimoes's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275908 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hi,

Ok, but i suggest that in future versions you could add the total weight in the order time.
For example, this is important to my costumer (the owner and the administrator of online store) to know the total weight of the order before shipping.

This is my suggestion.

Thanks,

Best regards

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 months ago [\#275910](#275910) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Total Weight in Cart](/forum/27-checkout/872391-total-weight-in-cart#275910 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hello, there.  Good evening!  Please could you let me know the php code to display the total weight in the Cart?  Please see attached for illustration.  Thanks.  Take care!")*

Hello,

Thank you for your feedback.
We will take it under consideration for the future improvement of the shipping management (with the implementations around the shipping tracking and the partial order statuses)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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