edit woocommerce schema price features

#202242
  • Hello
    I use WooCommerce Schema for products. The price of products does not have decimals (I chose zero decimals from the WooCommerce configuration section).
    In Google results, prices are displayed with two decimal places (after the dot, there are two zeros). How can I delete these decimals?

    Also, how can I change the <offerCount> for variable products (I want to change it to 1)?
    Thanks a lot

Viewing 5 replies - 1 through 5 (of 5 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.

    If you have recently change the price structure, you may need to wait for Google’s next recrawl of your site to see the changes.

    Could you please also share your product URL to check? You can add it in the sensitive data section
    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    You can use and customize this filter to update the offerCount in your product schema:
    https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    I hope that helps.

    Thank you.

    You can use and customize this filter to update the offerCount in your product schema:
    https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    I don’t use product schema. I’m using woocommerce schema.

    Brian
    Rank Math free

    Hello

    Thank you for getting back to us.

    Usually, the offerCount property in the WooCommerce schema is obtained from the number of variations you have within your product. Therefore this number is dynamic based on the variations and thus you can update it by adding or removing the variations.

    For example when you have 3 variations as shown here: https://i.rankmath.com/ILc9cM
    Your offerCount will be 3: https://i.rankmath.com/Kictby

    Hope this clarifies your query. Let us know if we can help you further in case you have any other questions.

    Hello
    What about this:

    I use WooCommerce Schema for products. The price of products does not have decimals (I chose zero decimals from the WooCommerce configuration section).
    In Google results, prices are displayed with two decimal places (after the dot, there are two zeros). How can I delete these decimals?

    Thank you

    Hello,

    Thank you for the follow-up.

    I’ve checked your product using Google’s Rich Results test, and your product prices are already set with the format you have (without 2 zeros after the decimal).

    The product you have provided seems not yet being recrawled by Google. I’ve attached a screencast in the sensitive data section.

    In this case, you just have to wait for Google to re-crawl and re-index the product with your updated price setup.

    I hope that helps.

    Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘edit woocommerce schema price features’ is closed to new replies.