';
// Product attributes
$attributes = $product->get_attributes();
if (\!empty($attributes)) {
echo '
';
foreach ($attributes as $attribute) {
if ($attribute->get_visible()) {
echo '';
echo '' . wc_attribute_label($attribute->get_name()) . ' | ';
echo '' . $product->get_attribute($attribute->get_name()) . ' | ';
echo '
';
}
}
echo '
';
}
// Additional specifications
echo '
Product Details
';
echo '
';
echo 'SKU | ' . ($product->get_sku() ?: 'N/A') . ' |
';
echo 'Weight | ' . ($product->get_weight() ? $product->get_weight() . ' kg' : 'N/A') . ' |
';
$dimensions = $product->get_dimensions(false);
if (\!empty($dimensions['length']) || \!empty($dimensions['width']) || \!empty($dimensions['height'])) {
echo 'Dimensions | ' . wc_format_dimensions($dimensions) . ' |
';
}
echo 'Condition | New |
';
echo 'Warranty | 1 Year Manufacturer Warranty |
';
echo '
';
echo '
';
}
/**
* Shipping tab content
*/
function nordiccommerce_shipping_tab_content() {
echo '