diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index da85a52bb..1ed314700 100755 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -16,7 +16,7 @@ class DatabaseSeeder extends Seeder */ public function run() { -// $this->call(BagistoDatabaseSeeder::class); + $this->call(BagistoDatabaseSeeder::class); // $this->call(VelocityMetaDataSeeder::class); $this->call(SargaDatabaseSeeder::class); } diff --git a/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php b/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php index e44695905..f42539824 100644 --- a/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php +++ b/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php @@ -12,6 +12,118 @@ class ChannelTableSeeder extends Seeder */ public function run() { + DB::table('channels')->insert([ + 'id' => 2, + 'code' => 'test', + 'theme' => 'default', + 'hostname' => config('app.url').'/test', + 'root_category_id' => 2, + 'default_locale_id' => 1, + 'base_currency_id' => 1, + ]); + DB::table('channel_translations')->insert([ + [ + 'id' => 6, + 'channel_id' => 2, + 'locale' => 'en', + 'name' => 'Test', + 'home_page_content' => ' +

@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")

+ + ', + 'footer_content' => ' +
+ Quick Links + +
+
+ Connect With Us + +
+ ', + 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}', + ], [ + 'id' => 7, + 'channel_id' => 2, + 'locale' => 'tr', + 'name' => 'Test', + 'home_page_content' => ' +

@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")

+ + ', + 'footer_content' => ' +
+ Quick Links + +
+
+ Connect With Us + +
+ ', + 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}', + ] + ]); + DB::table('channel_currencies')->insert([[ + 'channel_id' => 2, + 'currency_id' => 3, + ],[ + 'channel_id' => 2, + 'currency_id' => 4, + ]]); + + DB::table('channel_locales')->insert([[ + 'channel_id' => 2, + 'locale_id' => 6, + ],[ + 'channel_id' => 2, + 'locale_id' => 7, + ]]); + + DB::table('channel_inventory_sources')->insert([ + 'channel_id' => 2, + 'inventory_source_id' => 1, + ]); } } \ No newline at end of file diff --git a/packages/Sarga/Shop/src/Database/Seeders/DatabaseSeeder.php b/packages/Sarga/Shop/src/Database/Seeders/DatabaseSeeder.php index 57a2655de..1a28a6183 100644 --- a/packages/Sarga/Shop/src/Database/Seeders/DatabaseSeeder.php +++ b/packages/Sarga/Shop/src/Database/Seeders/DatabaseSeeder.php @@ -14,7 +14,8 @@ class DatabaseSeeder extends Seeder public function run() { $this->call(SLocalesTableSeeder::class); - $this->call(DemoCategoryTableSeeder::class); + $this->call(SCurrencyTableSeeder::class); +// $this->call(DemoCategoryTableSeeder::class); $this->call(ChannelTableSeeder::class); }