From 431336cf1435bd7232fa53c4388958e2c035e48c Mon Sep 17 00:00:00 2001 From: Erwin Galang Date: Fri, 16 Feb 2024 11:18:40 +0800 Subject: [PATCH] fixes to conflicts in config based settings --- product-delete-action.php | 3 ++- vendor-all-product-list.php | 2 +- vendor-uploads.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/product-delete-action.php b/product-delete-action.php index 685ae40..f259992 100644 --- a/product-delete-action.php +++ b/product-delete-action.php @@ -1,7 +1,8 @@ 'https://api.obanana.shop/api/v1/products/656717579624f6181c49cdda', diff --git a/vendor-all-product-list.php b/vendor-all-product-list.php index 917c25a..6dacb2c 100644 --- a/vendor-all-product-list.php +++ b/vendor-all-product-list.php @@ -171,7 +171,7 @@ $products = productList(); if (isset($product['product_image']) && !empty($product['product_image'])) { echo 'Product Image'; } else { - echo 'Placeholder Image'; + echo 'Placeholder Image'; } ?> diff --git a/vendor-uploads.php b/vendor-uploads.php index 44de788..47030c9 100644 --- a/vendor-uploads.php +++ b/vendor-uploads.php @@ -485,7 +485,7 @@ $array = json_decode($result, true); formData.append('category', 'product'); formData.append('image', resizedFile); - fetch('https://api.obanana.shop/api/v1/upload_image', { + fetch('https:///api/v1/upload_image', { method: 'POST', body: formData })