- Posts: 1
- Thank you received: 0
Include product weight and dimensions
- leeportnoff
-
Topic Author
- Offline
Less
More
15 years 6 months ago #11315
by leeportnoff
Include product weight and dimensions was created by leeportnoff
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?
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.
15 years 6 months ago #11317
by nicolas
Replied by nicolas on topic Re: Include product weight and dimensions
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 } ?>
.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.
15 years 5 months ago #13105
by webarts
Replied by webarts on topic Re: Include product weight and dimensions
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.
15 years 5 months ago #13121
by nicolas
Replied by nicolas on topic Re: Include product weight and dimensions
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.156 seconds