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

#   dimension displayed wrong if size multiple of 10

##

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

Less More

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

15 years 2 months ago -  15 years 2 months ago [\#23605](#23605) by [squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")  *[dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#23605 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")* was created by *[squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")*

Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.

so example dimensions i would enter in the product screen are:

Volume
Length : 0
Width : 55.00 cm
Height : 40.00

when i view my product the dimensions are listed like so:

Width: 55 cm
Height: 4 cm

If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the "40" value, even though it is proceeded by ".00". this is also true if i have a multiple of ten for the other dimension fields!

how to fix please??? cheers!

Last edit: 15 years 2 months ago by [squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjA1LWRpbWVuc2lvbi1kaXNwbGF5ZWQtd3JvbmctaWYtc2l6ZS1tdWx0aXBsZS1vZi0xMD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 2 months ago [\#23619](#23619) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#23619 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")*

That's indeed a bug.
You need to edit the file "show" of the view "product" via the menu Display-&gt;Views and change several piece of code (for height, width and lenght) from:
rtrim($this-&gt;element-&gt;product_width,',.0')

to:
rtrim(rtrim($this-&gt;element-&gt;product_width,'0'),',.')

and that will work correctly.

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

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

Less More

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

15 years 2 months ago [\#23620](#23620) by [squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")  Replied by *[squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")* on topic *[Re: dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#23620 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")*

excellent - that did the trick! Thank you - would never have worked that one out myself ![;)](/media/kunena/emoticons/11.png ";)")

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

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

Less More

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

15 years 1 month ago [\#26132](#26132) by [squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")  Replied by *[squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")* on topic *[Re: dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#26132 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")*

Hey, just so you know, since the last update, I've only just noticed like, but this bug has come back. I'm going to remake the suggested mod again after a backup. ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNjA1LWRpbWVuc2lvbi1kaXNwbGF5ZWQtd3JvbmctaWYtc2l6ZS1tdWx0aXBsZS1vZi0xMD90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 1 month ago [\#26133](#26133) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#26133 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")*

We didn't do a release since 1 month and a half so it's normal that the problem is still there. It will be corrected in next release.

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

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

Less More

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

15 years 1 month ago [\#26135](#26135) by [squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")  Replied by *[squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")* on topic *[Re: dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#26135 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")*

yep that fixed it again. please fix in the next release!!!

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

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

Less More

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

15 years 1 month ago [\#26177](#26177) by [squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")  Replied by *[squeakstar](/forum/user/318-squeakstar "View squeakstar's Profile")* on topic *[Re: dimension displayed wrong if size multiple of 10](/forum/4-how-to/23605-dimension-displayed-wrong-if-size-multiple-of-10#26177 "Hey, not sure if this is a bug or a tweak i need to make on my store. I need to enter size dimensions for my products which are 2 dimensional posters, so i need a width and a height.  so example dimensions i would enter in the product screen are:  Volume Length : 0 Width : 55.00 cm Height : 40.00  when i view my product the dimensions are listed like so:  Width: 55 cm Height: 4 cm  If i have a height of 41.00 the product page shows the correct value for height. Hikashop is rounding up or something and removing the zero from the &quot;40&quot; value, even though it is proceeded by &quot;.00&quot;. this is also true if i have a multiple of ten for the other dimension fields!  how to fix please??? cheers!")*

oh sorry - it seems like a blur away since i did that and had gremlins with something else in the latest release!

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

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

[](#top)
