- Posts: 88
- Thank you received: 0
Adding px to dimensions
- wonderwilson
-
Topic Author
- Offline
Less
More
14 years 3 months ago #52475
by wonderwilson
Adding px to dimensions was created by wonderwilson
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
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 or Create an account to join the conversation.
14 years 3 months ago #52541
by nicolas
Replied by nicolas on topic Re: Adding px to dimensions
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
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
Please Log in or Create an account to join the conversation.
- wonderwilson
-
Topic Author
- Offline
Less
More
- Posts: 88
- Thank you received: 0
14 years 3 months ago #52621
by wonderwilson
Replied by wonderwilson on topic Re: Adding px to dimensions
Hi Nicolas,
Thanks for this! I've changed this, however it only affects the product view, not the category view - any ideas?
Darren
Thanks for this! I've changed this, however it only affects the product view, not the category view - any ideas?
Darren
Please Log in or Create an account to join the conversation.
14 years 3 months ago #52693
by nicolas
Replied by nicolas on topic Re: Adding px to dimensions
The category view does not display dimensions in HikaShop.
You must have customized the view files in order to display them...
You must have customized the view files in order to display them...
Please Log in or Create an account to join the conversation.
- wonderwilson
-
Topic Author
- Offline
Less
More
- Posts: 88
- Thank you received: 0
14 years 2 months ago #56055
by wonderwilson
Replied by wonderwilson on topic Re: Adding px to dimensions
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
The PHP I've used in the listing_img_title view is as follows: <?php echo $this->row->product_dimension_unit;?> this still displays yd.
Any Ideas?
Darren
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
The PHP I've used in the listing_img_title view is as follows: <?php echo $this->row->product_dimension_unit;?> this still displays yd.
Any Ideas?
Darren
Please Log in or Create an account to join the conversation.
14 years 2 months ago #56114
by nicolas
Replied by nicolas on topic Re: Adding px to dimensions
Hi,
You need to use that instead:
<?php echo JText::_($this->row->product_dimension_unit);?>
You need to use that instead:
<?php echo JText::_($this->row->product_dimension_unit);?>
The following user(s) said Thank You: wonderwilson
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds