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

#   Weight on checkout

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

15 years 1 month ago [\#25597](#25597) by [nicoinca](/forum/user/3906-nicoinca "View nicoinca's Profile")  *[Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#25597 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")* was created by *[nicoinca](/forum/user/3906-nicoinca "View nicoinca's Profile")*

Hello,

How can i do to show the weight on the chekout page ?
Can i display products by category ?

thanks

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

15 years 1 month ago [\#25619](#25619) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#25619 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")*

Hi,

If you want to customize the display of the cart on the checkout, you need to edit the file "cart" of the view "checkout" via the menu Display-&gt;Views.

The weight can be displayed easily by adding a small piece of code like that: echo $row-&gt;product_weight;
For the display of products ordered by categories, that way more complex so I don't have a ready made solution. You would first have to load the categories from the database and order the products by category before displaying them. That's way more than a two liner so you need to have a good grasp of PHP to do it.

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

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

Less More

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

14 years 11 months ago [\#31624](#31624) by [afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile")  Replied by *[afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile")* on topic *[Re: Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#31624 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")*

Hi,
I want to show the weight of each product in the product page and also on the checkout page, right under the image and the discretion of the product.
i have tried pasting this line in many places in views&gt;checkout&gt;cart
echo $row-&gt;product weight;
But nothing showed up, do i have to add any brackets it...?
How do I do it exactly and where exactly do I have to put it?
Thanks

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

14 years 11 months ago [\#31645](#31645) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#31645 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")*

If you add your code in HTML code, you should do like this:
&lt;?php echo $row-&gt;product_weight; ?&gt;

Also don't forget the underscore. Otherwise it won't work properly.

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

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

Less More

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

14 years 11 months ago -  14 years 11 months ago [\#31662](#31662) by [afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile")  Replied by *[afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile")* on topic *[Re: Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#31662 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")*

Thanks, how to make it display next to the weight KG or G for example 2.00 KG

Last edit: 14 years 11 months ago by [afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile").

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

14 years 11 months ago [\#31676](#31676) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#31676 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")*

Then, for the weight unit you should do like that:

&lt;?php echo $row-&gt;product_weight.' '.JText::_(strtoupper($row-&gt;product_weight_unit)); ?&gt;

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

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

Less More

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

14 years 11 months ago -  14 years 11 months ago [\#31677](#31677) by [afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile")  Replied by *[afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile")* on topic *[Re: Weight on checkout](/forum/4-how-to/25597-weight-on-checkout#31677 "Hello,  How can i do to show the weight on the chekout page ? Can i display products by category ?  thanks")*

Thanks, that’s worked for me and this is what I have done:
Somewhere at the top of the document to show the title:
&lt;th id="hikashop_cart_product_weight_title" style="float:left;margin-left: -144px;text-align: left;"&gt;
&lt;?php echo JText::_('Weight'); ?&gt;

&lt;/th&gt;
At the bottom of the document to show the weight and the unit:

&lt;th id="hikashop_cart_product_weight_title" style="float:left;margin-left: -144px;text-align: left;margin-top: 50px;"&gt;
&lt;?php echo $row-&gt;product_weight.' '.JText::_(strtoupper($row-&gt;product_weight_unit)); ?&gt;
&lt;/th&gt;
I have also added some CSS to make it go the correct position. image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/Untitled_1-20111204.png

- [ ![Untitled&#95;1-20111204.png](/forum/attachment/2178) ](/forum/attachment/2178 "...1-20111204.png") [ ](/forum/attachment/2178?download=1 "...1-20111204.png")

Last edit: 14 years 11 months ago by [afrttoh](/forum/user/4801-afrttoh "View afrttoh's Profile").

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

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