Announcement

Collapse
No announcement yet.

How to set up Schema microdata itemprop="image" on product page / image machine?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to set up Schema microdata itemprop="image" on product page / image machine?

    I'm getting the Schema microdata set up on my product page, but I'm stuck on the one for the image.

    If it was a single image that doesn't use Miva's image machine it would simply be:

    Code:
    <img itemprop="image" src="XXXXX.jpg" />
    If I add itemprop="image" into this line on my product display:
    Code:
    <img id="closeup_image" itemprop="image" src="graphics/en-US/mmui/dot.gif" alt="&mvte:product:name;" />
    The data pulled from this tag is (which won't work):
    http: //www.rainebrooke.com/product/graphics/en-US/mmui/dot.gif

    It needs to be the URL to the image.

    Anyone know how to implement the itemprop="image" tag in this situation?

    #2
    Re: How to set up Schema microdata itemprop=&quot;image&quot; on product page / image machine?

    No one has chimed in on this yet, so I thought I'd share what I did... and it appears to work.

    I'd be interested to hear from one of the Miva programmers to see if this is going to cause any problems.

    I came across this thread: http://extranet.mivamerchant.com/for...-image-machine

    In that thread, Brennan at Miva suggests swaping out
    Code:
    src="graphics/en-US/cssui/blank.gif"
    with the legacy full sized image
    Code:
    src="&mvt:product:image;"
    I did that and then added the microdata (itemprop="image") for the image URL... full line looks like this:
    Code:
    <img id="productFull" itemprop="image" src="http://&mvt:global:domain:name;/mm5/&mvt:product:image;" alt="&mvt:product:name;" title="&mvt:product:name;">
    Google's rich snippet testing tool is now showing that the image is being pulled correctly.

    Does anyone see any problems with this?
    Last edited by emione; 09-08-11, 01:56 PM.

    Comment

    Working...
    X