WooCommerce Variable product clarification

SNIP: Structured Data & Schema Plugin for WordPress Forums Structured Data Help WooCommerce Variable product clarification

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4085
    lordhenry
    Participant

    I am looking for a little clarification on this article: https://rich-snippets.io/structured-data-for-variable-products/

    1) When you say “For this you need to build your own Offer sub-schema” does that mean it is not a separate, new schema, but under the existing schema I built for my woocommerce pages?

    2) My Google Merchant Center listings (feed to Google Shopping) sends Variable products like this:

    https://www.1800doorbell.com/wdk-era-strobe-warehouse-doorbell-kit-strobe.htm?attribute_pa_choose-strobe-color=blue. The problem I have with my current structured data is that the stock status, price, and SKU may not match landing page the URL above sends Google to. Therefore, I am assuming I would use the same process in #1 above for the stock status as well?

    3) When I test the above URL in the Schema.org validtor it looks like it strips out the attributes from the URL b/c the schema url ends up like this: https://www.1800doorbell.com/wdk-era-strobe-warehouse-doorbell-kit-strobe.htm

    Thanks for the assistance.

    #4087
    Florian
    Keymaster

    Hey there,
    and thanks for your comment. I hope you’re doing well today.

    To 1: Yes, that’s correct.

    To 2: Hmm… are you currently using this schema for your WooCommerce product? It should load the desired status, price and SKU when you visit the page (or when you check it with the structured data test tools) with the parameter. The page without the parameters always just loads the default data.

    To 3: I’ve just entered the URL in the schema.org validator (click here) but it doesn’t strip the parameter.

    #4090
    lordhenry
    Participant

    Thank you for the assistance.

    This URL should product a sku https://www.1800doorbell.com/rustic-iron-star-wired-doorbell-push-button.htm?attribute_pa_choose-a-finish=rust of PB3036-AZ, but in the schema it shows PB3036 so I know I’ve done something wrong. Here’s a shot from the validator

    https://dl.dropboxusercontent.com/s/snmfogemri2dplk/shot_220428_074454.png

    Here’s my schema

    {
        "id": "snip-global-product-woo",
        "context": "http://schema.org",
        "type": "Product",
        "sku-prop-5a90e4c190ec5": {
            "0": "woocommerce_sku",
            "1": null,
            "overridable": false,
            "overridable_multiple": false
        },
        "mpn-prop-5a90e4c1a707e": {
            "0": "textfield_woocommerce_product_attribute",
            "1": "mpn",
            "overridable": true,
            "overridable_multiple": false
        },
        "image-prop-5a90e4c1cf2ec": {
            "0": "http://schema.org/ImageObject",
            "1": {
                "id": "snip-5a97cc0643099",
                "context": "http://schema.org",
                "type": "ImageObject",
                "height-prop-5a97cc064cf42": {
                    "0": "current_post_thumbnail_height",
                    "1": null,
                    "overridable": false,
                    "overridable_multiple": false
                },
                "width-prop-5a97cc065a42e": {
                    "0": "current_post_thumbnail_width",
                    "1": null,
                    "overridable": false,
                    "overridable_multiple": false
                },
                "url-prop-5a97cc066871e": {
                    "0": "current_post_thumbnail_url",
                    "1": null,
                    "overridable": false,
                    "overridable_multiple": false
                }
            },
            "overridable": false,
            "overridable_multiple": false
        },
        "name-prop-5a90e4c1e3c44": {
            "0": "current_post_title",
            "1": null,
            "overridable": false,
            "overridable_multiple": false
        },
        "aggregateRating-prop-5a90e4c20773c": {
            "0": "woocommerce_review_rating",
            "1": null,
            "overridable": false,
            "overridable_multiple": false
        },
        "offers-prop-5a90e4c21d251": {
            "0": "woocommerce_offers",
            "1": null,
            "overridable": false,
            "overridable_multiple": false
        },
        "gtin13-prop-5a90e4c261b5e": {
            "0": "textfield_meta",
            "1": "hwp_product_gtin",
            "overridable": true,
            "overridable_multiple": false
        },
        "description-prop-5a90e4c297536": {
            "0": "current_post_excerpt",
            "1": null,
            "overridable": false,
            "overridable_multiple": false
        },
        "brand-prop-5a90e4c2b5e88": {
            "0": "http://schema.org/Brand",
            "1": {
                "id": "snip-5a97cc562cbb3",
                "context": "http://schema.org",
                "type": "Brand",
                "name-prop-5a97cc563c122": {
                    "0": "textfield_woocommerce_product_attribute",
                    "1": "brand",
                    "overridable": true,
                    "overridable_multiple": false
                }
            },
            "overridable": true,
            "overridable_multiple": false
        },
        "_is_export": true,
        "@ruleset": [
            [
                {
                    "param": "post_type",
                    "operator": "==",
                    "value": "product"
                }
            ]
        ]
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.