Variant weight round-up

  • Posts: 88
  • Thank you received: 0
13 years 2 months ago #42905

Hi Nicolas,

Just a quick question - which file in display / views do I need to edit to stop mu minimum weight from rounding up - I've fixed it on the main product description, but the variant is still doing it.

Thanks

Darren

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

  • Posts: 83894
  • Thank you received: 13581
  • MODERATOR
13 years 2 months ago #42981

For the variants, it's the file "show" of the view "product":

<?php echo JText::_('PRODUCT_WEIGHT').': '.rtrim(rtrim($variant->product_weight,'0'),',.').' '.JText::_($variant->product_weight_unit); ?><br />

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

  • Posts: 88
  • Thank you received: 0
13 years 2 months ago #43131

Thanks Nicolas - works a treat!

Darren

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

Time to create page: 0.058 seconds
Powered by Kunena Forum