Imperfection on product micro data
-- 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.
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.
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.
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.
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
Could you check, please?
Best regards
my site with Hikashop
www.lacasettabio.it
Please Log in or Create an account to join the conversation.
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.
here you are.
Best regards
my site with Hikashop
www.lacasettabio.it
Please Log in or Create an account to join the conversation.
my site with Hikashop
www.lacasettabio.it
Please Log in or Create an account to join the conversation.
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.
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.
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
Please Log in or Create an account to join the conversation.
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.
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
Please Log in or Create an account to join the conversation.
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.