Support » Plugin: Perfect WooCommerce Brands » Google Search Console error – Either offers, review or aggregateRating

  • Hi,

    Google Search Console has started throwing the error: “Either ‘offers’, ‘review’ or ‘aggregateRating’ should be specified”. On the category pages I solved the problem with a snippet:

    * Remove the generated product schema markup from Product Category and Shop pages.
    function wc_remove_product_schema_product_archive() {
    remove_action( ‘woocommerce_shop_loop’, array( WC()->structured_data, ‘generate_product_data’ ), 10, 0 );
    add_action( ‘woocommerce_init’, ‘wc_remove_product_schema_product_archive’ );

    But the problem remains on the “brand” pages. Can you help me customize the snippet to work here?


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

  • You must be logged in to reply to this topic.