batchnz / craft-commerce-untitled

A Craft Commerce plugin for minting variants based on field values
MIT License
0 stars 1 forks source link

Product configurable type dropdown #8

Closed moacode closed 3 years ago

moacode commented 3 years ago

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.

Screen Shot 2020-12-09 at 11 27 35 AM
moacode commented 3 years ago

Estimate: 3–5 hours for writing API endpoint and force reload of page. Add another day for live updating of content.

moacode commented 3 years ago

@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/

moacode commented 3 years ago

This has been done.