Shipping.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. *
  7. * @copyright Copyright (c) 2016 FecShop Software LLC
  8. * @license http://www.fecshop.com/license/
  9. */
  10. return [
  11. 'shipping' => [
  12. // Shipping的运费,是表格的形式录入,shippingCsvDir是存放运费表格的文件路径。
  13. 'shippingCsvDir' => '@common/config/shipping',
  14. 'volumeWeightCoefficient' => 5000,
  15. 'shippingConfig' => [
  16. 'free_shipping'=> [ // 免运费
  17. 'label'=> 'Free shipping( 10-20 work days)',
  18. 'name' => 'HKBRAM',
  19. 'formula' => '0', // 这里填写公式,该值代表免邮。
  20. // 国家限制,当国家限制不满足,则该物流不可用 (如果没有国家限制可以去掉)
  21. // 重量限制,当重量超出这个范围,该物流将不可用 (如果没有重量限制可以去掉)
  22. 'weight' => [
  23. 'min' => 0,
  24. 'max' => 100,
  25. ],
  26. ],
  27. 'fast_shipping'=> [
  28. 'label'=> 'Fast Shipping( 3-12 work days)',
  29. 'name' => 'HKDHL',
  30. 'formula' => 'csv', // 请将文件名字的命名写入,譬如: fast_shipping.csv
  31. 'csv_content' => '', // 这个由shipping动态从文件中获取内容
  32. // 对于国家和重量限制,如果没有,则不用填写,如果有,参考上面的样式填写
  33. ],
  34. ],
  35. /** 该配置废弃,因为默认的shipping method,可能是不满足条件的。
  36. * 目前的default shipping method,从 可用物流数组 中取第一个作为 默认物流。
  37. * 该值必须在上面的配置 $shippingConfig中存在,如果不存在,则返回为空。
  38. */
  39. //'defaultShippingMethod' => [
  40. // 'enable' => true, // 如果值为true,那么用户在cart生成的时候,就会填写上默认的货运方式。
  41. // 'shipping' => 'fast_shipping',
  42. //],
  43. ],
  44. ];