Jump to content

Należy określić właściwość „offers”, „review” lub „aggregateRating”


Wojtasvx

Recommended Posts

Znalazlem cos takiego w necie, moze to pomóc ? 

 

HOW TO FIX EITHER “OFFERS”, “REVIEW”, OR “AGGREGATERATING” SHOULD BE SPECIFIED ERROR

If you’re receiving the Either “offers”, “review”, or “aggregateRating” should be specified error on your WooCommerce category pages, there is a fairly simple fix: Remove the product schema markup from the Shop and Product Category pages.

To do that, you’ll want to add the following code to your theme’s functions.php file:

 

/** * 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' );

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...