dynamic/silverstripe-products
Composer 安装命令:
composer require dynamic/silverstripe-products
包简介
Create a product catalog in SilverStripe
README 文档
README
A module to display a product catalog in your website.
Overview
Products are created as pages in your website, and can be organized by Product Categories. Product files, such as the included Brochures, can be attached to products. With the Product File Collection page, you can display a filterable list of all brochures across the system.
Instructions to create custom product files are included below.
Requirements
- SilverStripe ^4.0
- dynamic/silverstripe-collection ^2.0
- symbiote/silverstripe-gridfieldextensions ^3.0
- bummzack/sortablefile ^2.0
Installation
composer require dynamic/silverstripe-products
Usage
Upgrading to 1.1.0
Upgrading from 1.0.x to 1.1.0 will require running the following task as the Product's image upload now supports mp4 video files for upload.
sake dev/tasks/product-image-relation-update-task
Related Products
If you'd like to add the ability to include related products on a product page, you can apply the RelatedProductsDataExtension to Product.
In config.yml:
Dynamic\Products\Page\Product:
extensions:
- Dynamic\Products\Extension\RelatedProductsDataExtension
Related products can be added to any page type on your website, such as a BlogPost.
Custom Product Files
SilverStripe Products includes a Brochure object, which is an example of a Product File that can be assigned to products. You can create additional product file types per the following example:
use Dynamic\Products\Extension\ProductFileDataExtension;
class SpecSheet extends ProductFile
{
private static $table_name = 'SpecSheet';
private static $extensions = [ProductFileDataExtension::class];
}
Then, create a DataExtension and apply it to Product. Include the relation to the new product file:
private static $many_many = [
'SpecSheets' => SpecSheet::class,
];
private static $many_many_extraFields = [
'SpecSheets' => [
'SortOrder' => 'Int',
]
];
License
See License
Maintainers
- Dynamic dev@dynamicagency.com
Bugtracker
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.
If the issue does look like a new bug:
- Create a new issue
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.
Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
dynamic/silverstripe-products 适用场景与选型建议
dynamic/silverstripe-products 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.03k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 07 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「catalog」 「product」 「silverstripe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dynamic/silverstripe-products 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dynamic/silverstripe-products 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dynamic/silverstripe-products 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple RSS generator library for PHP 5.5 or later. clone from Bhaktaraz Bhatta ttps://github.com/bhaktaraz/php-rss-generator
Analytics chooser extensions for site settings.
Display your categories and products on front end of your website
Product catalog for your Symfony2 applications.
SilverCommerce module that adds customisable products (adding dropdowns, radio buttons or textfields to a product)
统计信息
- 总下载量: 3.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-07-17