From b5fa17566021fd178ef8101985138df4310513b7 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 22 Feb 2021 14:25:01 +0530 Subject: [PATCH 1/9] Version 1.3.1 Change Log Added --- CHANGELOG for v1.x.x.md | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/CHANGELOG for v1.x.x.md b/CHANGELOG for v1.x.x.md index 078d976bd..d4a15e400 100644 --- a/CHANGELOG for v1.x.x.md +++ b/CHANGELOG for v1.x.x.md @@ -1,6 +1,22 @@ # CHANGELOG for v1.x.x -#### This changelog consists the bug & security fixes and new features being included in the releases listed below. +This changelog consists of the bug & security fixes and new features being included in the releases listed below. + +## **v1.3.1 (22nd of February 2021)** - *Release* + +* #4659 [fixed] - Only show defaults option in Shipping. + +* #4654 [fixed] - Composer error with `khaled.alshamaa/ar-php` version. + +* #4641 [fixed] - Getting data in client id "sb" by default. + +* #4647 [fixed] - APP_VERSION returns the wrong version number. + +* #4645 [fixed] - `/api/products` returns trying to get property 'product' of non-object. + +* #4643 [fixed] - Getting exception when admin change the status of subscribed user to false. + +* #4633 [fixed] - Incorrect validation message at admin end. ## **v1.3.0 (16th of February 2021)** - *Release* @@ -274,8 +290,6 @@ * #3900 [fixed] - layout issue on cart page in ar (Default theme) - - ## **v1.2.0-BETA1 (18th of August 2020)** - *Release* * [feature] - Customer group price for products implemented @@ -938,16 +952,12 @@ * #3767 [fixed] - Header-nav on mobile view seem buggy on search item - - -## **v1.1.2 (24th of March 2020)** - *Release* +## **v1.1.2 (28th of April 2020)** - *Release* * [feature] - Now customer can cancel order. * [feature] - Auto and manual currency exchange rates update feature added. - - * #797 [fixed] - Add new module * #2453 [fixed] - Velocity theme is not loading on fresh instance @@ -1006,8 +1016,7 @@ * #2954 [fixed] - The merging cart function does not work when already added all items of product into customer cart - -## **v1.1.0 (24th of March 2020)** - *Release* +## **v1.1.1 (14th of April 2020)** - *Release* * #797 [fixed] - Add new module @@ -1139,10 +1148,6 @@ * #2876 [fixed] - Place order is disable at checkout when select shipping address - - - - ## **v1.1.0 (24th of March 2020)** - *Release* * [feature] Added new booking type product. @@ -1335,7 +1340,6 @@ * #2732 [fixed] - missing product's quick view in category page - ## **v1.0.0 (24th of February 2020)** - *Release* * #2377 [fixed] - Getting exception on creating a new category under any other category. @@ -1676,4 +1680,4 @@ * #2366 [fixed] - Not able to add logo for category, after saving the category logo gets removed. -* #2371 [fixed] - Getting exception on updating Category. \ No newline at end of file +* #2371 [fixed] - Getting exception on updating Category. From 5ec57238f874aab64f0f9828e1daaa30931911af Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 22 Feb 2021 14:29:11 +0530 Subject: [PATCH 2/9] Sorted In Increasing Order --- CHANGELOG for v1.x.x.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG for v1.x.x.md b/CHANGELOG for v1.x.x.md index d4a15e400..049e7ce22 100644 --- a/CHANGELOG for v1.x.x.md +++ b/CHANGELOG for v1.x.x.md @@ -4,19 +4,19 @@ This changelog consists of the bug & security fixes and new features being inclu ## **v1.3.1 (22nd of February 2021)** - *Release* -* #4659 [fixed] - Only show defaults option in Shipping. - -* #4654 [fixed] - Composer error with `khaled.alshamaa/ar-php` version. +* #4633 [fixed] - Incorrect validation message at admin end. * #4641 [fixed] - Getting data in client id "sb" by default. -* #4647 [fixed] - APP_VERSION returns the wrong version number. +* #4643 [fixed] - Getting exception when admin change the status of subscribed user to false. * #4645 [fixed] - `/api/products` returns trying to get property 'product' of non-object. -* #4643 [fixed] - Getting exception when admin change the status of subscribed user to false. +* #4647 [fixed] - APP_VERSION returns the wrong version number. -* #4633 [fixed] - Incorrect validation message at admin end. +* #4654 [fixed] - Composer error with `khaled.alshamaa/ar-php` version. + +* #4659 [fixed] - Only show defaults option in Shipping. ## **v1.3.0 (16th of February 2021)** - *Release* From 04ca4fac7db43edf09a50e12f66af55f8d1bf03f Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Mon, 22 Feb 2021 15:03:38 +0530 Subject: [PATCH 3/9] Issue #4344 fixed --- .../Webkul/Product/src/Repositories/ProductFlatRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Product/src/Repositories/ProductFlatRepository.php b/packages/Webkul/Product/src/Repositories/ProductFlatRepository.php index 5c3347945..6ede73f17 100644 --- a/packages/Webkul/Product/src/Repositories/ProductFlatRepository.php +++ b/packages/Webkul/Product/src/Repositories/ProductFlatRepository.php @@ -130,7 +130,8 @@ class ProductFlatRepository extends Repository $allFilterableAttributes = array_filter(array_unique(array_intersect($categoryFilterableAttributes, $productCategoryArrributes['attributes']))); $attributes = app('Webkul\Attribute\Repositories\AttributeRepository')->getModel()::with(['options' => function($query) use ($productCategoryArrributes) { - return $query->whereIn('id', $productCategoryArrributes['attributeOptions']); + return $query->whereIn('id', $productCategoryArrributes['attributeOptions']) + ->orderBy('sort_order'); } ])->whereIn('id', $allFilterableAttributes)->get(); From f3df55b1dc6a9cdbcd5bbe1769b2af92ad07cbe1 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 22 Feb 2021 15:32:21 +0530 Subject: [PATCH 4/9] Some Arangements Done --- CHANGELOG for v1.x.x.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG for v1.x.x.md b/CHANGELOG for v1.x.x.md index 049e7ce22..24cbd4105 100644 --- a/CHANGELOG for v1.x.x.md +++ b/CHANGELOG for v1.x.x.md @@ -4,19 +4,21 @@ This changelog consists of the bug & security fixes and new features being inclu ## **v1.3.1 (22nd of February 2021)** - *Release* -* #4633 [fixed] - Incorrect validation message at admin end. - -* #4641 [fixed] - Getting data in client id "sb" by default. - -* #4643 [fixed] - Getting exception when admin change the status of subscribed user to false. - -* #4645 [fixed] - `/api/products` returns trying to get property 'product' of non-object. - -* #4647 [fixed] - APP_VERSION returns the wrong version number. +* #4659 [fixed] - Only show defaults option in Shipping. * #4654 [fixed] - Composer error with `khaled.alshamaa/ar-php` version. -* #4659 [fixed] - Only show defaults option in Shipping. +* #4647 [fixed] - APP_VERSION returns the wrong version number. + +* #4645 [fixed] - `/api/products` returns trying to get property 'product' of non-object. + +* #4643 [fixed] - Getting exception when admin change the status of subscribed user to false. + +* #4641 [fixed] - Getting data in client id "sb" by default. + +* #4633 [fixed] - Incorrect validation message at admin end. + +* #4344 [fixed] - Attribute option positioning not working (Front-end). ## **v1.3.0 (16th of February 2021)** - *Release* From fb8b0f64cab125b81882081d781333ab664afc04 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 22 Feb 2021 17:46:09 +0530 Subject: [PATCH 5/9] Messages Updated! --- .../Controllers/SmartButtonController.php | 4 +- .../onepage/paypal-smart-button.blade.php | 38 ++++++++++--------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/packages/Webkul/Paypal/src/Http/Controllers/SmartButtonController.php b/packages/Webkul/Paypal/src/Http/Controllers/SmartButtonController.php index b3c7207d3..e63d21ad8 100755 --- a/packages/Webkul/Paypal/src/Http/Controllers/SmartButtonController.php +++ b/packages/Webkul/Paypal/src/Http/Controllers/SmartButtonController.php @@ -61,7 +61,7 @@ class SmartButtonController extends Controller try { return response()->json($this->smartButton->createOrder($this->buildRequestBody())); } catch (\Exception $e) { - throw $e; + return response()->json(json_decode($e->getMessage()), 400); } } @@ -76,7 +76,7 @@ class SmartButtonController extends Controller $this->smartButton->captureOrder(request()->input('orderData.orderID')); return $this->saveOrder(); } catch (\Exception $e) { - throw $e; + return response()->json(json_decode($e->getMessage()), 400); } } diff --git a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php index 207aaf56d..0fdf64d4d 100644 --- a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php +++ b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php @@ -14,6 +14,12 @@