From ed59f3ae9dad27d925bd28b296e5d157b58da818 Mon Sep 17 00:00:00 2001 From: Shubham Mehrotra Date: Mon, 8 Jun 2020 21:37:59 +0530 Subject: [PATCH] #3172 --- .../Velocity/src/Http/Controllers/Shop/ComparisonController.php | 1 + .../views/shop/guest/compare/compare-products.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Velocity/src/Http/Controllers/Shop/ComparisonController.php b/packages/Webkul/Velocity/src/Http/Controllers/Shop/ComparisonController.php index f95fcb5cd..52260f1c5 100644 --- a/packages/Webkul/Velocity/src/Http/Controllers/Shop/ComparisonController.php +++ b/packages/Webkul/Velocity/src/Http/Controllers/Shop/ComparisonController.php @@ -81,6 +81,7 @@ class ComparisonController extends Controller $productFlat = $productFlatRepository ->where('product_id', $productId) + ->orWhere('parent_id', $productId) ->get() ->first(); diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php index 072abcc03..0409933f9 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/guest/compare/compare-products.blade.php @@ -124,7 +124,7 @@ @endforeach - + @{{ __('customer.compare.empty-text') }}