Our products are being shown as out of stock in Go...
# suitecommerce
t
Our products are being shown as out of stock in Google search results because they are assemblies, built to order. They will show in stock when we show an assembly built in the 3pl location which is set to "MAKE INVENTORY AVAILABLE IN WEB STORE" - however our finance team does not like showing phony inventory - what is the best solution here?
m
You should change your schema data for those cases to show the item in stock
t
I'm heavily considering a fake location with no cost where we could hold a unit of inventory and have no impact to finance, but is there a config setting or another non-code change way to do this?
@Martin I presume there is something in the SCA modules you are referring to?
m
I’m not 100% sure but i think you can’t do it only by config, you should change the code that apply for the outstock shcema
Copy code
<link itemprop="availability" href="{{#if isInStock}}<https://schema.org/InStock{{else}}https://schema.org/OutOfStock{{/if}}>"/>
product_views_price.tpl
On that template you have the isInStock conditional statment, this pice of code is the one that tells google if an item is in or out of stock, you should change the isInStock logic to show what ever you need
By default is using the isinstock field
t
How can I view the file that google is reading from the sandbox?
a
https://search.google.com/structured-data/testing-tool If your sandbox is not publicly available, you can just copy and paste the html of your page.
You can manually calculate isInStock however you would like in the js. For example, I have custom a custom item field on non-inventory items that allows us to mark them out of stock manually.