taitava/silverstripe-pricelist 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

taitava/silverstripe-pricelist

Composer 安装命令:

composer require taitava/silverstripe-pricelist

包简介

Just a simple pricelist functionality that makes it possible to create products and have them listed in specific pricelists. No e-commerce functions.

README 文档

README

Setup

  1. Extend SiteTree (or some other class derived from it):

mysite/_config/pricelist.yml:

SiteTree:
  extensions:
   - PricelistSiteTreeExtension

Note! If you apply the extension to any other class than SiteTree, you need to define this additional configuration in mysite/_config/pricelist.yml:

Pricelist:
  belongs_many_many:
    Pages: *YourCustomClassNameHere*

If you forget this, (at least) the backend will crash when you go to add a new Pricelist to your pricelist page. This additional configuration is not needed if you just extend the whole SiteTree class, as that's already configured by default.

  1. Put this to themes/*your-theme-folder*/Page.ss (or to some other template file):
$AllPricelists
  1. If you want to adjust some configuration settings, you can put these to mysite/_config/pricelist.yml:
Pricelist:
  include_stylesheet: false
  currency_sign: '€' #Whether to use the Requirements class to include this module's own stylesheet in frontend to perform some small styling.
  currency_side: 'right'
PricelistItem:
  hide_zero_prices: false #If true, do not display anything in the price column for items whose price is 0.

Note that the above listing contains the default values, so if they seem good for you, you do not need to copypaste this list to anywhere.

  1. Run /dev/build?flush=all in your browser.

  2. Go to the CMS and edit some page. You should see a Pricelists tab there.

Contribution

If you have any ideas about how to improve this module or any questions, I would be glad to hear them! :) Please raise an issue or create a pull request - which ever you like.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固