batchnz / craft-commerce-untitled

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

Ability to delete a variant #16

Closed moacode closed 3 years ago

moacode commented 3 years ago

We need the ability to delete a variant from the variants data table.

moacode commented 3 years ago

Estimate: 2–4 hours.

moacode commented 3 years ago

@judereid I would add a DELETE endpoint to the variants controller and use the deleteElement method:

Craft::$app->getElements()->deleteElement($element);
moacode commented 3 years ago

On reflection, the user should just update their configuration.