This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Amani Joseph

  • *
  • 3 posts
Price Error on Schema.org Osclass
« on: August 30, 2022, 07:09:37 PM »
I found the price schema.org this line ("price": "<?php echo osc_esc_html(osc_item_price() > 0 ? osc_item_price() : 0); ?>",) found on oc-includes/osclass/structured-data.php is not produce write number it add a lot of zero as you can see on the picture below that is the schema result

Attachment 1

Below is how the price show on the post it self

Attachment 2

Here you can found how its show up on schema.org json (view-source)

view-source:https://epsilon.mb-themes.com/for-sale/electronics/samsung-s7-with-cover_i249


This is how it shows on database too i think it need to be formatted to show write value.

Can somebody help.?


*

MB Themes

Re: Price Error on Schema.org Osclass
« Reply #1 on: August 31, 2022, 10:05:10 AM »
@Amani
osc_item_price() should be devided by 1000000, it was addressed in 8.0.3 Osclass.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Amani Joseph

  • *
  • 3 posts
Re: Price Error on Schema.org Osclass
« Reply #2 on: August 31, 2022, 04:40:58 PM »
@Amani
osc_item_price() should be devided by 1000000, it was addressed in 8.0.3 Osclass.

Am new in programing can you tell me how to do that please.

*

MB Themes

Re: Price Error on Schema.org Osclass
« Reply #3 on: August 31, 2022, 04:50:30 PM »
You have code already, or?
osc_item_price()  - ---->> osc_item_price()/1000000
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by Amani Joseph on August 31, 2022, 04:53:01 PM
*

Amani Joseph

  • *
  • 3 posts
Re: Price Error on Schema.org Osclass
« Reply #4 on: August 31, 2022, 04:52:22 PM »
@Amani
osc_item_price() should be devided by 1000000, it was addressed in 8.0.3 Osclass.

Am new in programing can you tell me how to do that please.

I found the solution on the forum change that in <?php echo osc_item_price()/1000000; ?>"

https://forums.osclasspoint.com/all-in-one-seo-plugin/product-errors-in-google-search-console/msg34595/#msg34595