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

#   Adding px to dimensions

##

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

Less More

- Posts: 88
- Thank you received: 0
-
-

14 years 5 months ago [\#52475](#52475) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  *[Adding px to dimensions](/forum/2-general-talk-about-hikashop/52475-adding-px-to-dimensions#52475 "Hi Nicolas,  Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.  Cheers  Darren")* was created by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")*

Hi Nicolas,

Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.

Cheers

Darren

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

14 years 5 months ago [\#52541](#52541) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding px to dimensions](/forum/2-general-talk-about-hikashop/52475-adding-px-to-dimensions#52541 "Hi Nicolas,  Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.  Cheers  Darren")*

The dimensions are used for shipping calculations so we only have dimension units there.
The pixel is not a dimension unit as it depends on the dpi in order to know the size.

Anyway, what you can do on your end is use for example mm and just add a translation override like that:
MM="px"

[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

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

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

Less More

- Posts: 88
- Thank you received: 0
-
-

14 years 5 months ago [\#52621](#52621) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  Replied by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")* on topic *[Re: Adding px to dimensions](/forum/2-general-talk-about-hikashop/52475-adding-px-to-dimensions#52621 "Hi Nicolas,  Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.  Cheers  Darren")*

Hi Nicolas,

Thanks for this! I've changed this, however it only affects the product view, not the category view - any ideas?

Darren

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

14 years 5 months ago [\#52693](#52693) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding px to dimensions](/forum/2-general-talk-about-hikashop/52475-adding-px-to-dimensions#52693 "Hi Nicolas,  Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.  Cheers  Darren")*

The category view does not display dimensions in HikaShop.
You must have customized the view files in order to display them...

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

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

Less More

- Posts: 88
- Thank you received: 0
-
-

14 years 4 months ago [\#56055](#56055) by [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")  Replied by *[wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")* on topic *[Re: Adding px to dimensions](/forum/2-general-talk-about-hikashop/52475-adding-px-to-dimensions#56055 "Hi Nicolas,  Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.  Cheers  Darren")*

Hi Nicolas,

I've added the override YD="px" to the language override so yd now appears as px - in the product show view it appears correct, however in the listing view it still appears as YD - see: [ www.whitehornephotography.co.uk/index.php/search-all-images1](http://www.whitehornephotography.co.uk/index.php/search-all-images1)

The PHP I've used in the listing_img_title view is as follows: &lt;?php echo $this-&gt;row-&gt;product_dimension_unit;?&gt; this still displays yd.

Any Ideas?

Darren

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

14 years 4 months ago [\#56114](#56114) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding px to dimensions](/forum/2-general-talk-about-hikashop/52475-adding-px-to-dimensions#56114 "Hi Nicolas,  Is there a way of adding Pixels to dimensions? When I add it to the list in Configuration it says it's not in the list.  Cheers  Darren")*

Hi,

You need to use that instead:

&lt;?php echo JText::_($this-&gt;row-&gt;product_dimension_unit);?&gt;

The following user(s) said Thank You: [wonderwilson](/forum/user/3904-wonderwilson "View wonderwilson's Profile")

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

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