diff --git a/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php b/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php
index 6c3f28374..4054e0e4d 100644
--- a/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php
+++ b/packages/Sarga/Shop/src/Database/Seeders/ChannelTableSeeder.php
@@ -12,6 +12,7 @@ class ChannelTableSeeder extends Seeder
*/
public function run()
{
+ DB::table('channel_translations')->delete();
DB::table('channels')->delete();
DB::table('channels')->insert([
@@ -45,46 +46,6 @@ class ChannelTableSeeder extends Seeder
[
'id' => 1,
'channel_id' => 1,
- 'locale' => 'en',
- 'name' => 'Test',
- 'home_page_content' => '
-
@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
-
- ',
- 'footer_content' => '
-
-
- ',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
- ], [
- 'id' => 2,
- 'channel_id' => 1,
'locale' => 'tr',
'name' => 'Trendyol',
'home_page_content' => '
@@ -121,10 +82,338 @@ class ChannelTableSeeder extends Seeder
',
- 'home_seo' => '{"meta_title": "Demo store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ 'home_seo' => '{"meta_title": "Trendyol store", "meta_keywords": "Trendyol store meta keyword", "meta_description": "Trendyol store meta description"}',
+ ],
+ [
+ 'id' => 2,
+ 'channel_id' => 2,
+ 'locale' => 'tr',
+ 'name' => 'LCW',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "LCW store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ ],
+ [
+ 'id' => 3,
+ 'channel_id' => 3,
+ 'locale' => 'tr',
+ 'name' => 'Outlet',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "Outlet store", "meta_keywords": "Outlet store meta keyword", "meta_description": "Outlet store meta description"}',
+ ],
+ [
+ 'id' => 4,
+ 'channel_id' => 1,
+ 'locale' => 'tm',
+ 'name' => 'Trendyol',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "Trendyol store", "meta_keywords": "Trendyol store meta keyword", "meta_description": "Trendyol store meta description"}',
+ ],
+ [
+ 'id' => 5,
+ 'channel_id' => 2,
+ 'locale' => 'tm',
+ 'name' => 'LCW',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "LCW store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ ],
+ [
+ 'id' => 6,
+ 'channel_id' => 3,
+ 'locale' => 'tm',
+ 'name' => 'Outlet',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "Outlet store", "meta_keywords": "Outlet store meta keyword", "meta_description": "Outlet store meta description"}',
+ ],
+ [
+ 'id' => 7,
+ 'channel_id' => 1,
+ 'locale' => 'ru',
+ 'name' => 'Trendyol',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "Trendyol store", "meta_keywords": "Trendyol store meta keyword", "meta_description": "Trendyol store meta description"}',
+ ],
+ [
+ 'id' => 8,
+ 'channel_id' => 2,
+ 'locale' => 'ru',
+ 'name' => 'LCW',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "LCW store", "meta_keywords": "Demo store meta keyword", "meta_description": "Demo store meta description"}',
+ ],
+ [
+ 'id' => 9,
+ 'channel_id' => 3,
+ 'locale' => 'ru',
+ 'name' => 'Outlet',
+ 'home_page_content' => '
+ @include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
+
+ ',
+ 'footer_content' => '
+
+
+ ',
+ 'home_seo' => '{"meta_title": "Outlet store", "meta_keywords": "Outlet store meta keyword", "meta_description": "Outlet store meta description"}',
]
]);
-
+ DB::table('channel_currencies')->delete();
DB::table('channel_currencies')->insert([
[
'channel_id' => 1,
@@ -149,7 +438,7 @@ class ChannelTableSeeder extends Seeder
'channel_id' => 2,
'currency_id' => 2,
]]);
-
+ DB::table('channel_locales')->delete();
DB::table('channel_locales')->insert([
[
'channel_id' => 1,
@@ -162,7 +451,7 @@ class ChannelTableSeeder extends Seeder
'channel_id' => 3,
'locale_id' => 1,
]]);
-
+ DB::table('channel_inventory_sources')->delete();
DB::table('channel_inventory_sources')->insert([
[
'channel_id' => 1,
diff --git a/packages/Sarga/Shop/src/Database/Seeders/SLocalesTableSeeder.php b/packages/Sarga/Shop/src/Database/Seeders/SLocalesTableSeeder.php
index 8fadfa4f6..a433b9bb2 100644
--- a/packages/Sarga/Shop/src/Database/Seeders/SLocalesTableSeeder.php
+++ b/packages/Sarga/Shop/src/Database/Seeders/SLocalesTableSeeder.php
@@ -19,16 +19,12 @@ class SLocalesTableSeeder extends Seeder
'name' => 'Türkçe',
], [
'id' => 2,
- 'code' => 'TM',
+ 'code' => 'tm',
'name' => 'Türkmençe',
], [
'id' => 3,
'code' => 'ru',
'name' => 'Russian',
- ], [
- 'id' => 4,
- 'code' => 'en',
- 'name' => 'English',
]]);
}
}
\ No newline at end of file