Store.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. return [
  3. 'store' => [
  4. 'class' => 'fecshop\services\Store',
  5. 'stores' => [
  6. // store key:域名去掉http部分,作为key,这个必须这样定义。
  7. 'apphtml5.fecshoptest.com' => [
  8. 'language' => 'en_US', // 语言简码需要在@common/config/fecshop_local_services/FecshopLang.php 中定义。
  9. 'languageName' => 'English', // 语言简码对应的文字名称,将会出现在语言切换列表中显示。
  10. 'localThemeDir' => '@apphtml5/theme/terry/theme01', // 设置当前store对应的模板路径。关于多模板的方面的知识,您可以参看fecshop多模板的知识。
  11. 'thirdThemeDir' => [], // 第三方模板路径,数组,可以多个路径
  12. 'currency' => 'USD', // 当前store的默认货币,这个货币简码,必须在货币配置中配置
  13. // 第三方账号登录配置
  14. 'thirdLogin' => [
  15. // facebook账号登录
  16. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  17. 'facebook_app_id' => '108618299786621',
  18. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  19. ],
  20. // google账号登录
  21. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  22. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  23. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  24. ],
  25. ],
  26. // 用于sitemap生成中域名。
  27. 'https' => false,
  28. // sitemap的路径。
  29. 'sitemapDir' => '@apphtml5/web/sitemap.xml',
  30. ],
  31. 'fecshop.apphtml5.fancyecommerce.com/fr' => [
  32. 'language' => 'fr_FR',
  33. 'languageName' => 'Français',
  34. 'localThemeDir' => '@apphtml5/theme/terry/theme01',
  35. 'thirdThemeDir' => [],
  36. 'currency' => 'RMB',
  37. 'mobile' => [
  38. 'enable' => false,
  39. 'condition' => ['phone'], // phone 代表手机,tablet代表平板。
  40. 'redirectDomain' => 'fecshop.apphtml5.fancyecommerce.com/fr', // 跳转后的url。
  41. ],
  42. // 第三方账号登录配置
  43. 'thirdLogin' => [
  44. // facebook账号登录
  45. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  46. 'facebook_app_id' => '108618299786621',
  47. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  48. ],
  49. // google账号登录
  50. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  51. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  52. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  53. ],
  54. ],
  55. 'sitemapDir' => '@apphtml5/web/fr/sitemap.xml',
  56. ],
  57. 'fecshop.apphtml5.es.fancyecommerce.com' => [
  58. 'language' => 'es_ES',
  59. 'languageName' => 'Español',
  60. 'localThemeDir' => '@apphtml5/theme/terry/theme01',
  61. 'thirdThemeDir' => [],
  62. 'currency' => 'USD',
  63. 'mobile' => [
  64. 'enable' => false,
  65. 'condition' => ['tablet'],
  66. 'redirectDomain' => 'fecshop.apphtml5.es.fancyecommerce.com',
  67. ],
  68. // 第三方账号登录配置
  69. 'thirdLogin' => [
  70. // facebook账号登录
  71. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  72. 'facebook_app_id' => '108618299786621',
  73. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  74. ],
  75. // google账号登录
  76. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  77. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  78. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  79. ],
  80. ],
  81. 'sitemapDir' => '@apphtml5/web/sitemap_es.xml',
  82. ],
  83. 'fecshop.apphtml5.fancyecommerce.com/cn' => [
  84. 'language' => 'zh_CN',
  85. 'languageName' => '中文',
  86. 'localThemeDir' => '@apphtml5/theme/terry/theme01',
  87. 'thirdThemeDir' => [],
  88. 'currency' => 'CNY',
  89. 'mobile' => [
  90. 'enable' => false,
  91. 'condition' => ['phone', 'tablet'],
  92. 'redirectDomain' => 'fecshop.apphtml5.fancyecommerce.com/cn',
  93. ],
  94. // 第三方账号登录配置
  95. 'thirdLogin' => [
  96. // facebook账号登录
  97. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  98. 'facebook_app_id' => '108618299786621',
  99. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  100. ],
  101. // google账号登录
  102. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  103. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  104. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  105. ],
  106. ],
  107. 'sitemapDir' => '@apphtml5/web/cn/sitemap.xml',
  108. ],
  109. ],
  110. ],
  111. ];