|
meta) )
{
echo ' ' . nl2br($item_meta->display(true, true, '_', "\n")) . ''; } ?> |
get_weight() )
{
if( esc_attr(get_option('woocommerce_weight_unit')) == "kg" )
{
echo (float) $_product->get_weight() . esc_attr(get_option('woocommerce_weight_unit'));
}
else
{
switch( esc_attr(get_option('woocommerce_weight_unit')) )
{
case "g":
$weight = (float) $_product->get_weight() / 1000.0;
break;
case "lbs":
$weight = (float) $_product->get_weight() * 0.45;
break;
case "oz":
$weight = (float) $_product->get_weight() * 0.03;
break;
default:
$weight = "can not be calculated in ";
break;
}
echo $_product->get_weight() . ' ' . esc_attr(get_option('woocommerce_weight_unit')) . ' (' . $weight . ' kg)'; } } ?> |
get_dimensions(); ?> |