sturple/shopify-special-offers

该包已被废弃且不再维护。未建议替代包。

Shopify 特殊优惠捆绑包(嵌入)

0.0.1 2016-12-16 19:15 UTC

This package is not auto-updated.

Last update: 2021-06-06 21:55:39 UTC


README

安装

** 使用 Composer 安装 **

{
   "require": {
       "sturple/fgms-shopify-special-offers": "dev-master"
   }
}

然后执行

$ composer update

配置

添加到 app/AppKernel.php 文件

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            ...
             new Fgms\SpecialOffersBundle\FgmsSpecialOffersBundle();
        ]
    }
}

以下配置选项可能在 config.yml 中设置

fgms_special_offers:
    api_key:            # API key for Shopify
    secret:             # Secret for Shopify
    expired:            # Number of expired special offers shown on main page of app
    notifications:      # Optional: Only specify if you want email notifications on sale started/ended
        from:           # Specifies email address email notifications will come from
            name:       # Optional, full name of person email will come from
            address:    # Email address of person email will come from
        to:             # Specifies email addresses email notifications will be sent to
            - name:     # Optional, full name of person email will be sent to
              address:  # Email address of person email will be sent to
        start_template: # Twig template which will be rendered for special offer started
        end_template:   # Twig template which will be rendered for special offer ended

要求

需要64位PHP。要检查您是否运行的是64位PHP,请运行以下代码

<?php
echo PHP_INT_SIZE;

如果打印出8,则您正在运行64位PHP。

Shopify App 配置

该捆绑包指定了以下路由,必须为Shopify App进行配置

  • 安装: /install
  • OAuth: /auth
  • 主页: /