From 33fdf0d24c7ffc5525a16aa712862f073f583302 Mon Sep 17 00:00:00 2001 From: "shubhammehrotra.symfony@webkul.com" Date: Tue, 31 Dec 2019 09:48:49 +0530 Subject: [PATCH] merged --- .../Product/ProductRepository.php | 35 ------------------- .../Velocity/src/Resources/lang/en/app.php | 1 - .../views/home/featured-products.blade.php | 3 +- 3 files changed, 1 insertion(+), 38 deletions(-) diff --git a/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php b/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php index 28d5e916c..07fc8acad 100644 --- a/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php +++ b/packages/Webkul/Velocity/src/Repositories/Product/ProductRepository.php @@ -2,46 +2,11 @@ namespace Webkul\Velocity\Repositories\Product; -use DB; -use Illuminate\Container\Container as App; -use Illuminate\Support\Facades\Event; -use Illuminate\Database\Eloquent\ModelNotFoundException; -use Webkul\Attribute\Repositories\AttributeRepository; use Webkul\Core\Eloquent\Repository; use Webkul\Product\Repositories\ProductFlatRepository; -use Webkul\Product\Models\ProductAttributeValue; -/** - * Product Repository - * - * @author Jitendra Singh - * @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com) - */ class ProductRepository extends Repository { - /** - * AttributeRepository object - * - * @var array - */ - protected $attributeRepository; - - /** - * Create a new controller instance. - * - * @param Webkul\Attribute\Repositories\AttributeRepository $attributeRepository - * @return void - */ - public function __construct( - AttributeRepository $attributeRepository, - App $app - ) - { - $this->attributeRepository = $attributeRepository; - - parent::__construct($app); - } - /** * Specify Model class name * diff --git a/packages/Webkul/Velocity/src/Resources/lang/en/app.php b/packages/Webkul/Velocity/src/Resources/lang/en/app.php index 8a076cb51..4e82d1042 100644 --- a/packages/Webkul/Velocity/src/Resources/lang/en/app.php +++ b/packages/Webkul/Velocity/src/Resources/lang/en/app.php @@ -21,7 +21,6 @@ return [ 'status' => 'Status', 'active' => 'Active', 'inactive' => 'Inactive', - 'featured-product' => 'Featured Product' ], 'category' => [ 'icon-status' => 'Category Icon Status', diff --git a/packages/Webkul/Velocity/src/Resources/views/home/featured-products.blade.php b/packages/Webkul/Velocity/src/Resources/views/home/featured-products.blade.php index 662c90729..701cba7e6 100644 --- a/packages/Webkul/Velocity/src/Resources/views/home/featured-products.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/home/featured-products.blade.php @@ -1,10 +1,9 @@ @php + $count = 4; $config = core()->getConfigData('velocity.configuration.general.featured_product'); if ($config > 4) $count = $config; - else - $count = 4; $featuredProducts = app('Webkul\Velocity\Repositories\Product\ProductRepository')->getFeaturedProducts($count);