Announcement

Collapse
No announcement yet.

Inventory Variant Price not displaying in Google Snippet

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

    Inventory Variant Price not displaying in Google Snippet

    As I was trying to title this post, I started thinking about why the correct price might not be displayed. If a product has multiple variants (all of which should be inactive and not listed) how would this snippet know which price to display?

    Code:
    <mvt:if expr="l.settings:attributemachine:product:inv_level">
    <mvt:assign name="l.availability_inv_level" value="l.settings:attributemachine:product:inv_level"/>
    <mvt:do name="l.formatted_variant_price" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:attributemachine:product:price )" />
    <meta itemprop="price" content="&mvt:attributemachine:product:price;"/>
    <mvt:else>
    <mvt:assign name="l.availability_inv_level" value="l.settings:product:inv_level"/>
    <meta itemprop="price" content="&mvt:product:price;"/>
    </mvt:if>
    I don't think it does so the Product snippets and Merchant listings in Google will all show $0.00 for the price.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    I took this issue to our software team and we have recorded it as a bug in the Shadows framework.

    We are currently working on a fix and will add it to the framework in future release.


    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    Working...
    X