basket/add-to-basket 问题修复 & 功能扩展

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

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

basket/add-to-basket

最新稳定版本:v0.0.23

Composer 安装命令:

composer require basket/add-to-basket

包简介

Statamic addon to integrate with Basket app

README 文档

README

Statamic addon to simplify adding an Add to Basket button on your website

How to Install

Run this command from the root of your Statamic project

composer require basket/add-to-basket php artisan vendor:publish --tag=add-to-basket-config --force php artisan vendor:publish --tag=add-to-basket-template --force

Add your api_key to env file

ADD_TO_BASKET_API_KEY=xxx 

Set the environment to either staging when testing or production

ADD_TO_BASKET_ENVIRONMENT=staging 

Configure the button template at views/vendor/basket/add-to-basket-button.blade.php

How to Use

  1. Add the Add To Basket field to your page blueprint with the handle add_to_basket
  2. Click the Add To Basket 'Enabled' checkbox in the page entry and Save
  3. Add script tag to your template {{ basket:script_tag | raw }}
  4. Add style tag to your template {{ basket:style_tag }}
  5. Add the button to your template:
{{ if add_to_basket.enabled && add_to_basket.links | length }} {{ basket:share_modal_button data={{add_to_basket}} | raw }} {{ /if }}

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固