У меня сейчас есть
Код: Выделить всё
if ( $product_weight ) {
$markup['additionalProperty'][] = [
"@type" => "PropertyValue",
"name" => "ShippingWeight",
"value" => $product_weight . " " . strtoupper( $weight_unit )
];
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... ce-for-goo
Мобильная версия