Include product weight and dimensions

  • Posts: 1
  • Thank you received: 0
13 years 8 months ago #11315

Each of my products has a length, width, height and weight.
I would like to present that information to the customer after the product description. How do I do that?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11317

For the weight, you can just go in the config under the tab display and edit the front end CSS file and remove the code:
.hikashop_product_weight_main {
display: none;
}

For the dimensions, you will have to modify the file show of the view product via the menu Display->Views and add such code (that's an example for the length):
<?php if(isset($this->element->product_length) && bccomp($this->element->product_length,0,3)){ ?>
<span id="hikashop_product_length_main" class="hikashop_product_length_main">
<?php echo 'Length : '.$this->element->product_length.' '.JText::_($this->element->product_dimension_unit); ?><br />
</span>
<?php } ?>

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

  • Posts: 149
  • Thank you received: 0
13 years 7 months ago #13105

its a good idea to include this in an update , so we can configure this with out code editing.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13121

We'll add an option for the dimensions yes.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum