Modify product measurements view

  • Posts: 1
  • Thank you received: 0
13 years 4 months ago #20929

When I fill in product details like product width etc. It will show in the product page with 3 digits behind the point (300.000 cm).
I would like it to show no digits behind the point. (300cm).
How can I modify that?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #20931

You need to edit the file "show" of the view "product" via the menu Display->Views and change the code like
$this->element->product_width
to:
rtrim($this->element->product_width,',.0')

same for product_length and product_height

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

Time to create page: 0.055 seconds
Powered by Kunena Forum