-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.10
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none
Hi Hikashop
I'm trying to add a little more information to the customers experience when viewing the checkout cart. I have done some override to show_block_cart.php.
Under product name I would suggest and like that the product_weight is shown. I have added the code below, but I have two problems:
//if(!empty($this->options['show_product_weight'])) {
?><span id="hikashop_cart_product_weight" class="hikashop_cart_product_weight">
<?php echo rtrim(rtrim($product->product_weight,'0'),',.').' '.JText::_($product->product_weight_unit);
?></span><?php
//}
1) the $this->options[show_product_weight] is not in the array and this is why I have comment it out for now.
2) the $product->product_weight_unit is all in 'kilo' even though the product has 'gram' as unit.
Under price I would suggest and like that the price_per_unit is shown.
Both information's can be found on the product detail page, from where I have looked for code inspiration.
Thanks in advanced.
Best regards,
Henrik