Feat: Product Variations page get, filter, and save. \n Fix: Active column changed to Add / Delete / Undelete column - this change has only been applied to Product Variations page
This commit is contained in:
@@ -120,6 +120,21 @@ export default class API {
|
||||
return await API.request(hashSaveStoreProductPermutation, 'POST', dataRequest);
|
||||
}
|
||||
|
||||
// product variations
|
||||
static async getProductVariations() {
|
||||
return await API.request(hashGetStoreProductVariation);
|
||||
}
|
||||
static async getProductVariationsByFilters(filtersJson) {
|
||||
API.goToHash(hashPageStoreProductVariations, filtersJson);
|
||||
}
|
||||
static async saveProductVariations(variationTypes, formFilters, comment) {
|
||||
let dataRequest = {};
|
||||
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
||||
dataRequest[flagProductVariationType] = variationTypes;
|
||||
dataRequest[flagComment] = comment;
|
||||
return await API.request(hashSaveStoreProductVariation, 'POST', dataRequest);
|
||||
}
|
||||
|
||||
// stock items
|
||||
static async getStockItems() {
|
||||
return await API.request(hashGetStoreStockItem);
|
||||
|
||||
Reference in New Issue
Block a user