ranone
Forum Replies Created
-
Ok, tks π
Ohh thanks!
Now the testing tool notify me only:
β offerCount (AggregateOffer)
β brand (Product)
β missing isbn|mpn|gtin8 (Product)Can you confirm that it’s all a Woocommerce problem?
Sorry, I don’t know if it’s a lack of WooCommerce or not … but I have these notices in the Google structured data testing tool:
## BEFORE SITEREVIEW ACTIVATION ##
5 warnings:
– offerCount (AggregateOffer)
– aggregateRating (Product)
– review (Product)
– brand (Product)
– missing isbn|mpn|gtin8 (Product)##Β AFTER SITEREVIEW ACTIVATION ##
2 Errors:
– lowPrice (AggregateOffer)
– priceCurrency (AggregateOffer)4 warnings:
– highPrice (AggregateOffer)
– 2 x offerCount (AggregateOffer)
– brand (Product)
– missing isbn|mpn|gtin8 (Product)Do you have any idea what the problem may be?
Thanks a lot! All work fine now! π
I found a comment that clarifies the mystery …
Below the Woocommerce code:
/** * Generates Product structured data. */ public function generate_product_data( $product = null ) { [...] $markup = array( '@type' => 'Product', '@id' => $permalink . '#product', // Append '#product' to differentiate between this @id and the @id generated for the Breadcrumblist. 'name' => $product->get_name(), 'url' => $permalink, 'image' => wp_get_attachment_url( $product->get_image_id() ), 'description' => wp_strip_all_tags( do_shortcode( $product->get_short_description() ? $product->get_short_description() : $product->get_description() ) ), ); [...]The comment “Append ‘#product’ to differentiate between this @id and the @id generated for the Breadcrumblist” tells us where the SiteReview plugin metadata ends…
So… I have the result that the BreadcrumbList @type has all the correct data and the Product @type has a series of missing valuesββ…
Perhaps the most correct solution for Woocommerce is repeat the SiteReview plugin data to @type Product by creating another JSON with “url + #prodcut” like @id?
what do you think about it?
I’ve added to function.php this code but non change anything into structured data testing tool of Google.
// Add reviews to sections product pages add_action( 'woocommerce_after_single_product_summary', 'add_reviews_code_for_products', 10 ); function add_reviews_code_for_products() { echo do_shortcode('[site_reviews assigned_to=post_id schema=true]'); }I already had the parameter schema=true into my code..
Where I wrong?
Thanks a lot
- This reply was modified 7 years, 1 month ago by ranone.
Forum: Plugins
In reply to: [Site Reviews] Integration in category pagesOh, it’s true! I apologize but I got confused with [site_reviews] shortcode parameters…
The plugin is very very TOP! π
Forum: Plugins
In reply to: [Site Reviews] Integration in category pagesThanks you so much Gemini!
It’s almost perfect! Is there any way to show only the stars for the products that actually have reviews?
This is because products that have no reviews show 5 empty stars, which seem to be rated 0/5..
Tks in advance
Forum: Plugins
In reply to: [Site Reviews] Integration in category pagesIs there any way to insert the reviews in the product list (on each product) of the categories?
I still have this problem with the latest version 7.1.16.
When do you plan to solve this issue?
Forum: Plugins
In reply to: [Loco Translate] Error: 413 Request Entity Too Large loco translatebelow the console error message
Provide the following text when reporting a problem: ---- Status 413 "Request Entity Too Large" (text/html; charset=iso-8859-1 352 bytes) 413 Request Entity Too Large Request Entity Too Large The requested resource/wp-admin/admin-ajax.php does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. ====