Imperfection on product micro data

  • Posts: 719
  • Thank you received: 3
7 years 4 months ago #258388

-- url of the page with the problem -- : www.lacasettabio.it/negozio-online/legum...tto/ceci-bio-vendita
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

Hi,
I've just noticed that Hikashop has some issue on the micro data of the product:

1- the price that set Hikashop give an issue.
For example on this preview you can see that the price is 220.000,00
www.google.com/search?prvw=AHHjJUOmTjk83...6&filter=0&gws_rd=cr
But the real price of the product is Euro 2,20

2- The url of the product image (@type > product > image) that you can see on the google example is with the domain of the site
developers.google.com/search/docs/data-types/products
Hikashop, instead, set the url without the domain

3- On the @type > offer > availability
When a product is available have to have the content = schema.org/InStock
On hikashop the content is only "in stock".
By this way it does not work correctly and on the google preview you don't see the availability.

Could you check if I am right and fix all, please?
Thanks a lot
best regards


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
7 years 4 months ago #258410

Hi,

Please be sure that you do not have a view override for the product page.

You will find some other thread are talking about MicroData improvements.
Like for example, that one which is proving a fix for the "in stock" tag :
www.hikashop.com/forum/product-category-...as-stock.html#253948

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 719
  • Thank you received: 3
7 years 4 months ago #258421

Hi,
could you tell me what file of the view product have I to check, please?
Also, about the product in stock i think that the issue i found is different: If the content of @type > offer > availability is set to "In stock"
on the google preview the availability is not showed.


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
7 years 4 months ago #258434

Hi,

As you know, the product page is composed of several blocks ; the main data is in the "show_default" (if you're using the default layout for the product page).
See : www.hikashop.com/support/documentation/1...-display.html#layout

And if you take a further look at the patch I provided in the other thread, you will notice that the "in stock" is written differently, without space !

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 719
  • Thank you received: 3
7 years 4 months ago #258493

Hi,
about the availability I've fixed the issue. It came from the space InStock and OutOfStock
About the price i Think that I've found the origin of the issue but I was not be able to fix it.
The issue comes from the file product > listing_price.php

if($this->params->get('price_with_tax')){
$attributes = ' itemprop="price" content="'. str_replace(',','.',$this->currencyHelper->round($price->price_value_with_tax, $round)) .'"';
}else{
$attributes = ' itemprop="price" content="'. str_replace(',','.',$this->currencyHelper->round($price->price_value, $round)) .'"';
}
There is something wrong on the round function. The price of the "content" is not rounded.
Could you check, please?
Best regards


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
7 years 3 months ago #258499

Hi,

We have the same code and it works fine for us.
How did you configure your currency ? Could you provide a screenshot of its settings ?

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

  • Posts: 719
  • Thank you received: 3
7 years 3 months ago #258557

Hi,
here you are.
Best regards


my site with Hikashop
www.lacasettabio.it
Attachments:

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

  • Posts: 719
  • Thank you received: 3
7 years 3 months ago #258558

PS: I've just tested your demo site and it has an error on the price.


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
7 years 3 months ago #258569

Hi,

I see what is the problem. It only happens if the round prices during calculations setting is turned off.
I've made a patch to make it work even when the option is turned off.
The patch is included in the install package available on our website so you can download it and install it and you'll get it.
Note that you need to not have a view override on the listing_price view file for the change to take effect.

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

  • Posts: 719
  • Thank you received: 3
7 years 3 months ago #258603

Hi,
yes, now it works fine.
Thanks a lot
Best regards


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 719
  • Thank you received: 3
7 years 3 months ago #258614

Hi,
about the availability i see that on your patch you don't avoid the space inside Instock and Outofstock microdata.
So now i have to delete them again.
Why you have not change the code? Is not an error?
Best regards


my site with Hikashop
www.lacasettabio.it
Last edit: 7 years 3 months ago by lacasetta.

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

  • Posts: 26013
  • Thank you received: 4004
  • MODERATOR
7 years 3 months ago #258626

Hi,

I'm sorry but what are you talking about ?
Which version are you talking about ?!

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 719
  • Thank you received: 3
7 years 3 months ago #258661

Hi,
I'm talking about the issue I've reported on the point 3 at the start of the topic and about what you said on #258434: "And if you take a further look at the patch I provided in the other thread, you will notice that the "in stock" is written differently, without space !"
With the micro data content modified without space the availability works fine.
I didn't find this modification on the new download Nicolas made me do.
Best regards


my site with Hikashop
www.lacasettabio.it
Last edit: 7 years 3 months ago by lacasetta.

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
7 years 3 months ago #258665

Hi,

I see what you mean now.
Try again. I've uploaded a new package with the change for that too.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum