Adding px to dimensions

  • Posts: 88
  • Thank you received: 0
12 years 5 months ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 5 months ago #52541

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

Please Log in or Create an account to join the conversation.

  • Posts: 88
  • Thank you received: 0
12 years 5 months ago #52621

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 5 months ago #52693

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

Please Log in or Create an account to join the conversation.

  • Posts: 88
  • Thank you received: 0
12 years 4 months ago #56055

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

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 4 months ago #56114

Hi,

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.067 seconds
Powered by Kunena Forum