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:
2024-11-09 13:41:08 +00:00
parent 4c2e05f4ae
commit 0422059669
102 changed files with 11885 additions and 452 deletions

View File

@@ -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);