silvershop/stock
Composer 安装命令:
composer require silvershop/stock
包简介
Adds stock management to SilverShop.
README 文档
README
Adds stock management to the SilverStripe Shop module.
Installation
composer require "silvershop/stock:dev-main"
After installing the module, rebuild the database and create your first product
warehouse in the ProductCatalogAdmin tab.
Feature Overview
This module provides a couple of additional models - ProductWarehouse,
ProductWarehouseStock. A warehouse is a concept of a location where quantity
of the stock is held. In a simple case, you may have a single ProductWarehouse
instance that contains all your stock. More complex shops may have multiple
warehouses (i.e a store and a supplier). These warehouses are managed through
the ProductCatalogAdmin panel in the CMS.
The ProductWarehouseStock object manages the relation between a Product or a
ProductVariation and contains the specific count of the product at that
particular warehouse.
After installing the module your Product edit screen will gain a Stock tab
which lists all your warehouses and the value count of the product (or
variation). Leaving a warehouse stock value as -1 implies that this warehouse
has an unlimited quantity of this product.
When an product is added to the users cart, the quantity is on reserved as the
current order is stored in the Order table.
To make sure that stock added to the cart is released on abandoned carts make
sure you have the CartCleanupTask task enabled as a cron job
TODO
-
Allow prioritizing of warehouses within each product (i.e use warehouse X for before warehouse Y) This should use a sortable grid field based on the
ProductWarehoueStock. -
Move 'unlimited stock' to a checkbox rather than -1.
silvershop/stock 适用场景与选型建议
silvershop/stock 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14.23k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2016 年 05 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ecommerce」 「silverstripe」 「silvershop」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silvershop/stock 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silvershop/stock 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silvershop/stock 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shipping methods for the SilverShop.
Nevogate Payment Gateway SDK
Dealing with payments through the Egyptian payment gateway PayMob
Submodule for SilverShop which allows you to compare products in a table.
Analytics chooser extensions for site settings.
统计信息
- 总下载量: 14.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 3
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-05-06