定制 silvershop/stock 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

silvershop/stock

最新稳定版本:3.1.0

Composer 安装命令:

composer require silvershop/stock

包简介

Adds stock management to SilverShop.

README 文档

README

Adds stock management to the SilverStripe Shop module.

Build Status Code Quality Code Coverage Version License

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.

统计信息

  • 总下载量: 13.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-05-06