• Resolved jvandermark

    (@jvandermark)


    HI! ??

    We found out that Product Feed PRO for WooCommerce causes some schema mark up errors in combination with products that have variations (different size or color).

    We found out that url & availability don’t show up anymore with a correct format.

    Is there something we can do?

    FYI: I temporarily deactivated the plugin and now the errors don’t show up anymore.

    • This topic was modified 5 years, 2 months ago by jvandermark.
    • This topic was modified 5 years, 2 months ago by jvandermark.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Mark,

    Thanks for reaching out. Sorry to hear you are experiencing issues with your schema mark-up. We have tried to replicate the issue at hand for a variation (with two attributes) and it validates fine for us on url and availability.

    When using Google’s structured data testing tool we are getting this:
    https://www.dropbox.com/s/deltick5wib6z55/struct-data.png?dl=0

    Could you show us a screenshot of the errors you are getting?

    All the best,
    Eva

    Thread Starter jvandermark

    (@jvandermark)

    Hi Eva,

    Yeah sure. When the plugin is active i get this message: https://ibb.co/8gXX7dN

    When i deactivate the plugin the errors is gone.

    That’s not Google Structured data testing tool.

    Could you run it through Google’s tool and let me know what the outcome is:
    https://search.google.com/structured-data/testing-tool?hl=nl

    Also, what URL of your site are you testing? Is it a simple, variable or variation URL?

    Best,
    Eva

    Thread Starter jvandermark

    (@jvandermark)

    Okay! I switched the plugin on again. And I will leave it on for now.

    For example this product: https://shop.fit.nl/product/wrist-wraps/

    Screenshot: https://ibb.co/NVC9H4d

    Hi Mark,

    Thanks for leaving it on. We did some extensive testing and my guess is that you are using some other plugin or theme that also makes changes to the structured data that is causing the conflict.

    This is the code in the plugin itself:

    
                                            // This is a variation product page but no variation has been selected. WooCommerce always shows the price of the lowest priced
                                            // variation product. That is why we also put this in the JSON
                                            // When there are no parameters in the URL (so for normal users, not coming via Google Shopping URL's) show the old WooCommwerce JSON
                                            $product_price = round(wc_get_price_to_display($product),2);
    
                                            $markup_offer += array(
                                                    '@type'         => 'Offer',
                                                    'price'         => $product_price,
                                                    'priceCurrency' => $shop_currency,
                                                    'availability'  => 'https://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
                                                    'sku'           => $product->get_sku(),
                                                    'seller'        => array(
                                                            '@type' => 'Organization',
                                                            'name'  => $shop_name,
                                                            'url'   => $shop_url,
                                                    ),
                                                    'url'           => $link
                                            );
    

    As you can see it does contain the availablity and url. Also, when we run a variable URL of our test environment through Google’s testing tool we get this:
    https://www.dropbox.com/s/4qinx28hp18bykb/struct-data-variable.png?dl=0

    Which also sees to be correct and has the url and availability in it.

    Could you check what other plugins you are using that could cause a conflict?

    Best,
    Eva

    Thread Starter jvandermark

    (@jvandermark)

    Thanks Eva for the great help! We will have a look.

    Hi,

    Assuming the issue at hand has been resolved and/or our support is no longer required I am going to close this issue for housekeeping reasons now.

    Don’t hesitate to reach out to us again whenever you need our help.

    All the best,
    Eva

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Schema mark up availability & url’ is closed to new replies.