• Resolved dotker

    (@dotker)


    Greetings!

    Working on a website with the brands and unique identifier enabled but seems its not showing up on the schema markup. How can I make it show there?

    Also how do you call the brand and other added attribute programatically? i.e. $product->get_attribute( ‘woosea_brand’ );

    Any form of assistance/comments on this matter is highly appreciated.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi dotker,

    Thanks for using our plugin and reaching out to us. Our plugin only fixes the WooCommerce price bug for variations in the schema markup, otherwise Google will disapprove all variations in their merchant center. See this blog post about it: https://adtribes.io/woocommerce-structured-data-bug/

    Next to that it only uses the product condition coming from the woosea_* fields in the markup. It doesn’t change or add any other field to it.

    All the best,
    Eva

    Thread Starter dotker

    (@dotker)

    Thanks for those information Eva! So how do I call those added attributes? i.e. Add the “Brand” attribute added by the plugin to the theme so the brand attribute added by your plugin displays on the frontend?

    Hi,

    The extra fields added by our plugin are only meant to be added to product feeds, we have not designed the plugin as such so the fields are also showing in the front-end. Now that being said, you could try to accomplish that for yourselves of course.

    In the back-end they all start with _woosea_

    So for example:
    _woosea_mnp
    _woosea_ean
    _woosea_sku
    _woosea_gtin
    _woosea_brand
    and so on….

    When you have the product ID available you can retrieve the values for those fields like this:

    $mpn = get_post_meta( $productId, '_woosea_mpn', true );

    Hope this helps?

    All the best,
    Eva

    Thread Starter dotker

    (@dotker)

    Awesome! Its working! Thank you very much for the quick help Eva!

    You are welcome dotker.

    Have a great holidays!
    Eva

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add brands and unique identifier GTIN/MPC on structured data markup’ is closed to new replies.