Wrong price in WooCommerce product schema

#320511
  • Resolved Lisanne
    Rank Math business

    For the website Cleopatra we have Google Shopping campaigns running. However, Google disapproves the products due to incorrect pricing in the schema. We noticed RankMath uses the price without tax instead of the displayed price including tax.

    It is only possible to use the WooCommerce schema in the general settings, so we are looking for an easy fix. How can we make the RankMath plugin use the correct price including tax?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    The WooCommerce Product Schema fetches all the data from the products automatically according to your settings. If you’re already using that schema, you can manage the settings of your products in WooCommerce > Settings > Tax to include the vat/tax like in this image

    WooCommerce Tax

    I hope that helps.

    Thank you.

    Lisanne
    Rank Math business

    Hello,

    Thank you for your quick response. The WooCommerce settings are set already to include the vat/tax like in your image, so this sadly does not solve the issue.

    Are there other solutions?

    Hello,

    Could you please share a screenshot of the settings you have on the Tax options of WooCommerce so we can advise you better?

    Looking forward to hearing back from you.

    Lisanne
    Rank Math business

    It is in Dutch, but the same options are selected.

    Capture

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    Lisanne
    Rank Math business

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I went ahead and add a filter to forcibly display price in the schema with tax rate included. I tested it in the Google Rich Result Test and the desired price is now showing:

    price

    Kindly check from your end.

    Looking forward to helping you with this one.

    Lisanne
    Rank Math business

    Hi,

    Thank you for your reply. Where have you applied the filter? I have another website with the same issue so hopefully the same solution works.

    However for this website it is not solved completely yet, there are 18 disapproved products left in Merchant Center. This is one of them.

    Hello,

    It seems the tax-included price is showing on the schema from my end. Please see the screenshot of the affected URL that you just sent me:

    schema

    Please resubmit the product to the Google merchant center and let us know if the error is still there.

    I have added the code to your theme’s functions.php file as you can see in the screenshot:

    screenshot

    You can apply this filter code to the rest of your website if you wish to forcibly include the tax.

    add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
    	if(!is_product()){
    		return;
    	}
        global $product;
        $entity['offers']['price'] = wc_get_price_including_tax( $product );
        return $entity;
    });

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Lisanne
    Rank Math business

    Hello,

    Thank you for your reply. We have resubmitted the products again, but Google keeps on disapproving the price. Is there anything else we can do?

    Thanks in advance!

    Hello,

    Could you please share the error message you are getting? Also, please confirm if you are submitting the same URL in the sensitive data section or you have used a different URL so we can check.

    Meanwhile, we also recommend that you read through this guide to learn more about the way Google tries to identify the price and the guidelines that you need to set for your prices on the website: https://support.google.com/merchants/answer/6324371

    I hope that helps.

    Thank you.

    Lisanne
    Rank Math business

    Hi,

    We resolved the issue after contacting Google, something went wrong on their side.
    Thanks for the assistance!

    Azib Yaqoob
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

The ticket ‘Wrong price in WooCommerce product schema’ is closed to new replies.