Skip to content
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

Product doesn't show on website when adding it with REST #1720

Closed
rklerck opened this issue Aug 21, 2015 · 3 comments
Closed

Product doesn't show on website when adding it with REST #1720

rklerck opened this issue Aug 21, 2015 · 3 comments

Comments

@rklerck
Copy link

rklerck commented Aug 21, 2015

We're trying to load our categories and products through REST. Everything is added nicely and is visible in the backend, but it doesn't appear on the website. The option "Display Out of Stock Products" is put on "Yes".

After saving the product in the admin OR re-enabling it in the admin, it does show up!

Steps to reproduce:

  • Add category (REST or admin, doesn't matter)
  • Add product with REST:

url: magento2/rest/V1/products

{
"product": {
"sku": "TEST",
"name": "TEST",
"visibility": 4,
"type_id": "simple",
"price": 3.62,
"status": 1,
"attribute_set_id": 4,
"custom_attributes": [
{
"attribute_code": "description",
"value": "TEST"
}
]
}
}

  • Add product link with REST:

url: magento2/rest/V1/categories/[CATEGORY_ID]/products

{
"productLink": {
"sku": "TEST",
"category_id": [CATEGORY_ID]
}
}

After there steps the product is NOT visible on the website!

@kokoc
Copy link
Member

kokoc commented Sep 3, 2015

@rklerck thank you for reporting the issue. Internal reference: MAGETWO-39663

@rklerck
Copy link
Author

rklerck commented Nov 10, 2015

When running the indexer, by a index on schedule, this one also works fine.
Not sure if it works when the indexes are on update on save.

@arkadiych
Copy link
Contributor

@rklerck Thank you for your issue. It has been fixed in 2.0.0-rc.
You can find changes in next commits:
149a936
e39e8d4

magento-team pushed a commit that referenced this issue Nov 15, 2017
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-83815: Fixed php notice when invalid ui_component config is used #12239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants