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

#   Weight of products

##

- **[Michiel\_l](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile")**
- [![Michiel&#95;l's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile") Topic Author
- [ Offline](/forum/user/57981-michiel-l)

Less More

- Posts: 9
- Thank you received: 2
-
-

7 years 9 months ago [\#302927](#302927) by [Michiel\_l](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile")  *[Weight of products](/forum/26-product-category-display/896725-weight-of-products#302927 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2  Hello, I'm trying to display the weight of my products on the page that shows the products in a category.  I have added show&#95;block&#95;dimensions to listing&#95;img&#95;title, and it is there, but it remains empty.  However, within the productpage (show&#95;default) show&#95;block&#95;dimensions is displaying the weight of the same product properly.  Obviously, I'm missing out on something. What could it be?  Michiel")* was created by *[Michiel\_l](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile")*

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.2

Hello, I'm trying to display the weight of my products on the page that shows the products in a category.

I have added show_block_dimensions to listing_img_title, and it is there, but it remains empty.

However, within the productpage (show_default) show_block_dimensions is displaying the weight of the same product properly.

Obviously, I'm missing out on something. What could it be?

Michiel

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

7 years 9 months ago [\#302935](#302935) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Weight of products](/forum/26-product-category-display/896725-weight-of-products#302935 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2  Hello, I'm trying to display the weight of my products on the page that shows the products in a category.  I have added show&#95;block&#95;dimensions to listing&#95;img&#95;title, and it is there, but it remains empty.  However, within the productpage (show&#95;default) show&#95;block&#95;dimensions is displaying the weight of the same product properly.  Obviously, I'm missing out on something. What could it be?  Michiel")*

Hi,

The code in show_block_dimensions supposes that the data of the product is in $this-&gt;element
But on a listing of products $this-&gt;element contains the data of the current category and the data of the current product is in $this-&gt;row
So you would have to add such code before calling show_block_dimensions:
$this-&gt;element = $this-&gt;row;

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

- **[Michiel\_l](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile")**
- [![Michiel&#95;l's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile") Topic Author
- [ Offline](/forum/user/57981-michiel-l)

Less More

- Posts: 9
- Thank you received: 2
-
-

7 years 9 months ago [\#302965](#302965) by [Michiel\_l](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile")  Replied by *[Michiel\_l](/forum/user/57981-michiel-l "View Michiel&#95;l's Profile")* on topic *[Weight of products](/forum/26-product-category-display/896725-weight-of-products#302965 "-- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2  Hello, I'm trying to display the weight of my products on the page that shows the products in a category.  I have added show&#95;block&#95;dimensions to listing&#95;img&#95;title, and it is there, but it remains empty.  However, within the productpage (show&#95;default) show&#95;block&#95;dimensions is displaying the weight of the same product properly.  Obviously, I'm missing out on something. What could it be?  Michiel")*

Thanks a lot, that was it!

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

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