mediabeastnz/craft-commerce-click-and-collect
Composer 安装命令:
composer require mediabeastnz/craft-commerce-click-and-collect
包简介
Click And Collect plugin for Craft Commerce 2
README 文档
README
Click And Collect plugin for Craft Commerce 2
Click & Collect for Craft Commerce allows you to quickly start allowing your customers to pick their orders up in store rather than their items being shipped to them.
This can save businesses courier/shipping costs, get products to customers faster and provider a better service.
This plugin will allow you to manage and create multiple store locations in which the customer can select from. IT will be up to you to implement this logic on the frontend however you'll find some quickstart examples below.
Along with store management, this plugin will automatically create a Shipping method which can be renamed. This will be the method that customers choose if they wish to collect in store.
If a customer chooses to pick their order up in store, the plugin will update their order with the selected shipping mehtod and use a custom field to save their selected store.
Installation
Either by the plugin store (search "Click And Collect") or via composer.
"mediabeastnz/craft-commerce-click-and-collect": "^1.0.0"
Requirements
This plugin requires Craft CMS 3.0.0 or later and Craft Commerce 2.0 or later.
Setup
As mentioned above, this plugin doesn't provide any frontend widgets only the necessary data in which you can use to implement any sort of checkout process.
Please use this process as a reference when first installing:
-
Once the plugin is installed navigate to the plugins settings screen and update any default settings.
-
Next you will need to create your cusatom order field. Create a new field using the
Click & Collect Storesfield and remember to set its handle as it is in the settings. a. The handle needs to match the plugin settingStores Field Handle. -
Add your new field to the
Order Fieldsunder the Commerce System Settings. a. Note you can name the tab what ever suits. This field will only ever be used when the Orders Shipping Method is pickup in store (or whatever you called it). -
Create a few Stores
-
Now all that's left is to update your frontend for your store to allow customers to select the new shipping method and stores. a. Below are some code examples to get you started as well screenshots of how other stores have implemented this feature.
Examples / Recommendations
List out all Stores
{# First query for all Stores | You could also filter this list if required #} {% set stores = craft.clickandcollect.stores.all() %} {# Get the storeFieldHandle as per your settings | This is what stores the selected store #} {% set storeFieldHandle = craft.clickandcollect.settings.storeFieldHandle %} {% for store in stores %} <div class="shipping-select"> <label> <input type="radio" name="{{storeFieldHandle}}" value="{{ store.id }}" /> <strong>{{ store.title }}</strong> <span class="price">{{ store.address.city }}</span> {# You have access to the full address model here #} </label> </div> {% endfor %}
Example of implementation
The examples below are screenshots of what is possible. A small amount of javascript and you'll be up and running in no time.
Plugin Screenshots
Feature Requests
Feature requests are always welcome, if you have any ideas please either submit an issue here or contact me at www.mylesderham.dev.
Roadmap
- Dashboard to see incoming pickup orders, stats on delivery vs pickup
- Better documentation on how to implement frontend
- Create a few Event hooks to allow other plugins to integrate
mediabeastnz/craft-commerce-click-and-collect 适用场景与选型建议
mediabeastnz/craft-commerce-click-and-collect 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 861 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「commerce」 「instore」 「Craft」 「craftcms」 「collect」 「craft-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mediabeastnz/craft-commerce-click-and-collect 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediabeastnz/craft-commerce-click-and-collect 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mediabeastnz/craft-commerce-click-and-collect 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
GraphQL authentication for your headless Craft CMS applications.
Provides an add-on purchasable entity.
Supercharged text field validation.
Adds a 'checkout' to a SilverStripe site which links to an Estimate and adds the ability to setup and pay
Display your categories and products on front end of your website
统计信息
- 总下载量: 861
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-06-02







