w3caredev/tariff

tariff

安装: 8

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:craft-plugin

dev-master 2018-04-17 13:36 UTC

This package is not auto-updated.

Last update: 2024-10-03 04:39:08 UTC


README

tariff

Screenshot

要求

此插件需要Craft CMS 3.0.0-beta.23或更高版本。

安装

要安装此插件,请按照以下说明操作。

  1. 打开您的终端并转到您的Craft项目

     cd /path/to/project
    
  2. 然后让Composer加载插件

     composer require w3caredev/tariff
    
  3. 在控制面板中,转到设置→插件,然后点击tariff的“安装”按钮。

tariff概览

-在此处插入文本-

配置tariff

  • //在您的 /vendor/w3caredev/tariff/src/modal/Settings.php 中设置配置

    $tableField = 'priceByAge'; $ageColumn = 'age'; $priceColumn = 'price'; $sectionName = 'tariffs';

使用tariff

-{% set birthdate = '01/30/2008' %}

{% for item in craft.tariff.birthdate(birthdate).hide("noPrice").sort("price", "DESC").find() %}

{{item.title}} 
{{item.price}} 
{{item.customfiled1}} 

{% endfor %}-

tariff路线图

一些待办事项和潜在功能的想法

  • 发布

w3caredev提供