From 8de67683c7b6106b072e28bca621de127179f42d Mon Sep 17 00:00:00 2001 From: mh-rafi Date: Mon, 14 Feb 2022 20:03:27 +0600 Subject: [PATCH] added error code to error message --- includes/Gumroad.php | 2 +- readme.md | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/includes/Gumroad.php b/includes/Gumroad.php index cd939fa..94fbd0b 100644 --- a/includes/Gumroad.php +++ b/includes/Gumroad.php @@ -51,7 +51,7 @@ public function get_resource($resource_url) { } elseif ( $status_code === 401 ) { return new \WP_Error('gumroad-unathorized', __('Invalid token!', 'uilib-gumpress')); } else { - return new \WP_Error('gumroad-error', __('Error while getting data from Gumroad!!', 'uilib-gumpress')); + return new \WP_Error('gumroad-error', __('Error while getting data from Gumroad! Error code '.$status_code, 'uilib-gumpress')); } } diff --git a/readme.md b/readme.md index 6b3004b..e55a013 100644 --- a/readme.md +++ b/readme.md @@ -42,4 +42,11 @@ to Gumroad. * added: plugin action link * fixed: import only published * added: variation select - * updated: variable product button \ No newline at end of file + * updated: variable product button + +### Roadmap +* Out of stok prodcut +* Affiliated products going to external page +* Same product order as Gumroad +* Additional information/ Versions +* Option for overriding the woocommerce product data(Title, Description, etc). So that user can choose which field should be overridden and which not \ No newline at end of file