Facebook and Google microdata

  • Posts: 27
  • Thank you received: 0
3 years 6 months ago #324206

-- url of the page with the problem -- : hungarianflavours.com/webaruhaz/mandula-szeletelt-100g
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.0
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome 85.0.4183.83
-- Error-message(debug-mod must be tuned on) -- : Facebook and google microdata

Hello,

Facebook microdata checker gave these errors:
A required field is missing: id
Products without "id" information can't be uploaded. Please check that this field is included for each product in a separate, labeled column.
Incorrectly Formatted Property: price
Item subtype : Property price is incorrectly formatted.

Notice:
A product is missing a field: google_product_category

How can I solve it?
Link: hungarianflavours.com/webaruhaz/mandula-szeletelt-100g

Without these data facebook is not able to put my products to its category automatic.

Best regards
Krisztian

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
3 years 6 months ago #324210

Hi,

What is "facebook microdata checker" ?
I've never heard of such tool.
Since Facebook is not a search engine, it normally doesn't use microdata.
Normally, to check the microdata of a page, you do it with google's structured data testing tool:
search.google.com/structured-data/testing-tool/u/0/
And on this tool, there is no error for your link.
Similarily, Facebook has a testing tool for open graph meta data:
developers.facebook.com/tools/debug/
But here again, no error for your link.
So I'm not sure what you're talking about.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
3 years 6 months ago #324216

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
3 years 6 months ago #324237

Hi,

Thanks, I didn't know about this.
I checked the errors there and the developer documentation, as well as the microdata on your website, but everything looks like it's done properly (and that's normal, otherwise, Google structured data testing tool would complain too).
So that means that there are some subtleties to Facebook's tester which we need to figure out.
I actually see the same errors for a product details page on our demo website.
So there is something Facebook doesn't like about the way we add the microdata to the page.
We'll have to do some test/development work to sort thing out.

Thanks for the feedback. We'll work on that. Unfortunately, I can't give an immediate solution.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
3 years 6 months ago #324240

Hello Nicolas,

Thank you for your positive attitude.
We will be waiting for your solution.

Best regards
Krisztian

Please Log in or Create an account to join the conversation.

  • Posts: 4510
  • Thank you received: 611
  • MODERATOR
3 years 6 months ago #324332

hello,

Thanks again for your return, we have now, we hope solve the MicroData issue for Facebook that seems to be more strict from Google MicroData evaluation tool.
we have updated our files for our HikaShop future release, I will now teach you follow me step by step :
1. Go in YourWebsite\components\com_hikashop\views\product\tmpl folder
2. Open to edit listing_price.php file
3. Around line 147, Before

echo '<span class="'.implode(' ',$classes).'"'.$attributes.'>';
Add this :
$this->itemprop_price = new stdClass();
    $this->itemprop_price = $attributes .'"';

4. Around line 147, you have this :
echo '<span class="'.implode(' ',$classes).'"'.$attributes.'>';
Remove
'.$attributes.'
to have this :
echo '<span class="'.implode(' ',$classes).'">';
Results Before :

And After :


Second step :
5. Always in the same folder, open to edit show_default (or show_reversed, or show_tabular)
6. In Show_default around line 11, look for :
<span id="hikashop_product_code_main" class="hikashop_product_code_main" itemprop="sku"><?php
Remove the
itemprop="sku"
For have this :
<span id="hikashop_product_code_main" class="hikashop_product_code_main"><?php
7. Always in the same file, add this 2 lines before :
<meta itemprop="sku" content="<?php echo $this->element->product_code; ?>">
    <meta itemprop="productID" content="<?php echo $this->element->product_code; ?>">
Results Before :

After :

7. Around line 70, you have finally this :
<meta itemprop="availability" content="https://schema.org/<?php echo ($this->row->product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?>" />
    <meta itemprop="priceCurrency" content="<?php echo $this->currency->currency_code; ?>" />
9. Just before this 2 lines, add this :
<meta itemprop="price" content="<?php echo $this->itemprop_price; ?>" />
To have this :


Hope this please you to solve your current issue.
Regards

Last edit: 3 years 6 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
3 years 6 months ago #324883

Hello Philip,

I am sorry for late reply but our season has started so I have limited time only.
I did the correction but there are left some errors on page.
Will you issue a new version in near future what contain this amendment ?

hungarianflavours.com/webaruhaz/mandula-porkolt-1kg
A required field is missing: id
Incorrectly Formatted Property: price ( this cause Ft HUF formatting error because FT and HUF is the same on different language )

These error was found on fb microdata debug.
Best regards
Krisztian

Please Log in or Create an account to join the conversation.

  • Posts: 4510
  • Thank you received: 611
  • MODERATOR
3 years 6 months ago #324888

Hello,

Yes, this correction will be in the next HikaShop release (4.4.1), we haven't really some dates to communicate but this will be before the end of year.
Hoping that this return will be satisfactory from your side.
Regards

The following user(s) said Thank You: n00bster

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
  • Hikashop Business
3 years 3 months ago #327793

Hello,

We would like the Microdata tags installed on our website so we can have products available on our Facebook/Instagram platform.
Would you know when the HikaShop 4.4.1 will be available so we can move forward. (As mentioned in previous discussion thread)

Thanks kindly,
Best regards,
Trudy

Please Log in or Create an account to join the conversation.

  • Posts: 4510
  • Thank you received: 611
  • MODERATOR
3 years 3 months ago #327833

Hello,

This 4.4.1 version should be released for late January or early February, if this delay don't fit your needs, you have in this thread and this message a step by step to do yourself the modifications.

Hope this will fit your needs.
Regards

Last edit: 3 years 3 months ago by Philip.

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum