-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick question related to field manage_stock
#3
Comments
I don't think the In our implementation of VSF using this bridge we have products that are out of stock but are still imported. However, we don't import disabled products. One way to find out what's going on in your case is to check your ElasticSearch. If you have the out-of-stock products in the |
Thanks @themreza, Products are being displayed in VSF so they are in elasticsearch but they look as they are out of stock. // Stock API call returns a quantity of 3
// http://localhost:8080/api/stock/check?sku=LD4457
{"code":200,"result":{"item_id":2178,"product_id":2178,"qty":3,"is_in_stock":true}} And this, as far as I can see, is because the API is not returning the When VSF API Then the capybara theme will tell that this product is not available My only way to make it work is to hardcode this value into the opencart platform so now {"code":200,"result":{"item_id":2178,"product_id":2178,"qty":3,"is_in_stock":true,"manage_stock":true}} and it works as expected. But, to be honest I don't know what this |
Good find. Unfortunately, that's one of the downsides of Vue Storefront -- fields that have made it into code without any explanation, primarily because that's how Magento works. I checked our code and it looks like we changed Vue Storefront instead of adding the API field, but since it's more stable, do what you've done. |
Should I PR this? If it is gonna stay looks like the correct thing to do but I'm having trouble trying to figure out what is the purpose of this field :( |
Sure. It would be great if you collect all your findings and fixes as PRs and we can release them under its own branch as soon as you get a working setup. |
Hey I'm new to VSF so excuse me if this question does not make any sense.
After setting up this module in an opencart shop and the indexer I'm able to feed data into VSF API but in the shop I have no available products. Products are there but to VSF they can not be purchased due to lack of stock.
I've been checking the code and as far as I can see the problem is that products don't have a defined
manage_stock
option which, to be honest, I have no clue what does it mean.This option is present in the magento bridge and used by the capybara* theme
and here
So, back to my question: should this
manage_stock
option be set up by this module at export time?*res.manageStock is set by the store from the
manage_stock
propertyThe text was updated successfully, but these errors were encountered: