Add microdata to MarketPress products (SEO improvement)

It would be nice to have Marketpress output microdata on products.
The changes needed are really small and don't have a negative impact on anything. The only difference is that our sites will be better seo-wise and easier readable by search engines.

Here are the changes that need to be done:
They are all on the template-functions.php file so it's an easy fix:

change line 1375 from
$return = '<div '.mp_product_class(false, 'mp_product', $post->ID).'>';
to this:
$return = '<div itemscope itemtype="" '.mp_product_class(false, 'mp_product', $post->ID).'>';
addition applied: itemscope itemtype=""

line 1377 from
$return .= '<h3 class="mp_product_name"><a href="' . get_permalink( $post->ID ) . '">' . $post->post_title . '</a></h3>';
$return .= '<h3 itemprop="name" class="mp_product_name"><a href="' . get_permalink( $post->ID ) . '">' . $post->post_title . '</a></h3>';
addition applied: itemprop="name"

line 1380 from
$return .= '<div class="mp_product_content">';
$return .= '<div itemprop="description" class="mp_product_content">';
addition applied: itemprop="description"

line 1391 from
$return .= '<div class="mp_product_meta">';
$return .= '<div itemprop="offers" itemscope itemtype="" class="mp_product_meta">';
addition applied: itemprop="offers" itemscope itemtype=""

line 1548 from
$price .= '<span class="mp_current_price">'.$mp->format_currency('', $meta["mp_sale_price"][0]).'</span></span>';
$price .= '<span itemprop="price" class="mp_current_price">'.$mp->format_currency('', $meta["mp_sale_price"][0]).'</span></span>';
addition applied: itemprop="price"

line 1550 from
$price = '<span class="mp_normal_price"><span class="mp_current_price">'.$mp->format_currency('', $meta["mp_price"][0]).'</span></span>';
$price = '<span itemprop="price" class="mp_normal_price"><span class="mp_current_price">'.$mp->format_currency('', $meta["mp_price"][0]).'</span></span>';
addition applied: itemprop="price"

line 1755 from
$image = get_the_post_thumbnail($post_id, $size, array('class' => 'alignleft mp_product_image_'.$context, 'title' => $title));
$image = get_the_post_thumbnail($post_id, $size, array('itemprop' => 'image', 'class' => 'alignleft mp_product_image_'.$context, 'title' => $title));
addition applied:
'itemprop' => 'image'

that's all...
In case you want the complete file you can find it here:

I would love to see this in-core. The changes are minimum and the potential benefits are big. :slight_smile: