承接 thoughtco/lunar-cart-abandonment 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

thoughtco/lunar-cart-abandonment

最新稳定版本:0.3.3

Composer 安装命令:

composer require thoughtco/lunar-cart-abandonment

包简介

Lunar Cart Abandonment Addon

README 文档

README

An simple add-on for Lunar that triggers jobs based on how long a cart has been inactive for.

Installation

First, require as a composer dependency:

composer require thoughtco/lunar-cart-abandonment

Then publish the config file to allow you to define triggers and jobs.

php artisan vendor:publish --tag=lunar-cart-abandonment-config

Usage

You define triggers by adding new arrays to the triggers key in the config file, eg:

        [
            'interval' => 5, // minutes
            'job' => \App\Jobs\CartAbandonment::class,
            'queue' => 'default', // optional
            'queue_connection' => 'redis', // optional
            'config' => [], // this will be passed to your job along with the cart
        ],  

alternatively you can define a callable that returns an array of triggers.

'triggers' => [\App\Classes\CartAbandonmentTriggers::class, 'handle']
class CartAbandonmentTriggers
{
    public static function handle()
    {
        return [
            [
                'interval' => 5, // minutes
                'job' => \App\Jobs\CartAbandonment::class,
                'queue' => 'default', // optional
                'queue_connection' => 'redis', // optional
                'config' => [], // this will be passed to your job along with the cart
            ]
        ];
    }

Your job should expect 2 arguments, $cart and $config.

If you don't want the scheduled task to run every 5 minutes, you can change the frequency by using the schedule_interval config setting.

Support

This is a free addon so support is provided on an as-we-have-capacity basis. If you have a feature request or experience a bug, please open a GitHub Issue.

Only the latest version of this addon is supported. If you open a bug report using an old version, your issue will be closed.

统计信息

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

GitHub 信息

  • Stars: 9
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固