[SOLVED] Quantity is set to Unlimited, Google says "stock unavailable"

  • Posts: 297
  • Thank you received: 22
8 years 6 months ago #255906

-- url of the page with the problem -- : www.zisensa.com
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 7.0.13

Hi,

I'm curious why the Google Structured Data Testing tool (and the html code of the site) are showing our products as :

itemprop="availability" content="Out of stock">Out of stock</span>

The setting is set to "Unlimited" so I would not expect it to show "Out of stock" but "In stock".

Did I do something wrong ?

Thanks again for your time!

Last edit: 8 years 6 months ago by nico.van.leeuwen. Reason: marked as solved

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 6 months ago #255909

Hello,

Can you provide a url link to one of your unlimited product, and a screenshot of the error from data testing ?

Awaiting news from you.

Regards

Last edit: 8 years 6 months ago by Philip.

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

  • Posts: 297
  • Thank you received: 22
8 years 6 months ago #255946

Hi Philip,

The url of a random product (they are all unlimited) product

If I put this url into the Google tester it tell me this :

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 6 months ago #255983

Hello,

The way of your MicroData work is quite strange... I see only two possibilities :
- You have an override view on show_default, show_reversed and show_tabular, and something was broke in your condition => Try to remove the override view (save it to keep on your side your override view)
- You haven't the lastest 2.6.4 version that have a fix on this specific point.

Hope this will help you to fix your issue.

Regards

Last edit: 8 years 6 months ago by Philip.

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

  • Posts: 297
  • Thank you received: 22
8 years 6 months ago #256026

Hi Philip,

I just checked on the Hikashop demo website and it shows the same result :huh:
For example : hikashop demo

Have checked several other webshops I maintain but see the same result.

Just to be sure I will also try your suggestions and if any different result I will get back here and update this post.

Last edit: 8 years 6 months ago by nico.van.leeuwen. Reason: typo

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 6 months ago #256047

Hello,

Yes because this month a fix was created in order to correct this issue, the demo site isn't with the latest 2.6.4 version and some other website too I guess.
Quite sure that updating HikaShop will fix this.

Awaiting news from you

Regards

Last edit: 8 years 6 months ago by Philip.

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

  • Posts: 297
  • Thank you received: 22
8 years 6 months ago #256076

Hello Philip,

Sorry but I updated the package (which was from 23-11) again today but it stays the same.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
8 years 6 months ago #256083

Hello,

Can you provide some backend references with our Contact us form, don't forget to add an Url link to this topic.
Awaiting news from you.

Regards

Last edit: 8 years 6 months ago by Philip.
The following user(s) said Thank You: nico.van.leeuwen

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #256168

Hi,

Philip was looking at the code we have on our end for the next version of HikaShop.
For some reason the fix was not added to the 2.6.4 when it should have.
I've added the change on your website and added the fix to the 2.6.4

For others interested, you change to change the line:
$availability = ($this->row->product_quantity > 0) ? 'In stock' : 'Out of stock';
to:
$availability = ($this->row->product_quantity != 0) ? 'In stock' : 'Out of stock';
in the file "show_default" via the menu Display>Views.

The following user(s) said Thank You: nico.van.leeuwen

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

  • Posts: 297
  • Thank you received: 22
8 years 6 months ago #256170

Hi Nicolas and Philip,

Thank you both for sorting this !
Problem indeed looks fixed.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum