Cart.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * FecShop file.
  4. * @link http://www.fecshop.com/
  5. * @copyright Copyright (c) 2016 FecShop Software LLC
  6. * @license http://www.fecshop.com/license/
  7. */
  8. return [
  9. 'cart' => [
  10. 'class' => 'fecshop\services\Cart',
  11. // 子服务
  12. 'childService' => [
  13. 'quote' => [
  14. 'class' => 'fecshop\services\cart\Quote',
  15. ],
  16. 'quoteItem' => [
  17. 'class' => 'fecshop\services\cart\QuoteItem',
  18. ],
  19. 'info' => [
  20. 'class' => 'fecshop\services\cart\Info',
  21. /*
  22. * 单个sku加入购物车的最大个数。
  23. */
  24. //'maxCountAddToCart' => 100,
  25. // 上架状态产品加入购物车时,
  26. // 如果addToCartCheckSkuQty设置为true,则需要检查产品qty是否>购买qty,
  27. // 如果设置为false,则不需要,也就是说产品库存qty小于购买qty,也是可以加入购物车的。
  28. //'addToCartCheckSkuQty' => false,
  29. ],
  30. 'coupon' => [
  31. 'class' => 'fecshop\services\cart\Coupon',
  32. ],
  33. ],
  34. ],
  35. ];