Closed moacode closed 3 years ago
Estimate: 3–5 hours for writing API endpoint and force reload of page. Add another day for live updating of content.
@judereid I would add an endpoint to a products API controller to do this. A basic patch request should do the trick. You'll need to update the API rules in the main plugin script to do this. API controllers live in src/controllers/api/v1/
This has been done.
We need to add support for changing the configurable type dropdown from "standard" to "configurable" and back.
At present it can be changed to configurable, but the request fails when changing it back. We should probably introduce another API endpoint dedicated to handling this (rather than tapping into the product save event) and update the DOM without refreshing the page.