johnhenry/craft-pricing-rules-relationship 问题修复 & 功能扩展

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

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

johnhenry/craft-pricing-rules-relationship

Composer 安装命令:

composer require johnhenry/craft-pricing-rules-relationship

包简介

A field to add relationships between Commerce Pricing Rules and an element

README 文档

README

Stable Version Static Badge

pricing-rules-plugin-icon

Pricing Rules Relationship for Craft Commerce

Craft Pricing Rules Relationship is a field that ties Craft Commerce catalog pricing rules to your elements. It fills the gap between Commerce's own pricing rule management and Craft's element relationships, so store managers can link a rule to any element type and then pull the matching products straight into their templates.

Features

  • Relate rules to anything – Link Commerce catalog pricing rules to entries, products, categories, or any custom element type
  • Plain checkbox field – Editors tick the rules they want from a straightforward list, no fuss
  • Expiry-aware – Expired rules drop out of your templates on their own, so nobody has to untick anything by hand. You can show each rule's expiry date beside it too
  • Respects customer groups – A rule scoped to a customer group only returns its products to users in that group, so nothing leaks across groups
  • In-stock filtering – Pass hasStock: true and out-of-stock products are left off the list
  • Quick rule creation – A "New Catalog Pricing Rule" button drops editors straight into Commerce to add one
  • Template-readycraft.pricingRulesRelationship.getSaleIds() hands you the matching product IDs, ready for a product query

Perfect For

  • Tying pricing rules to specific content
  • Linking catalog pricing rules to marketing campaigns
  • Keeping your pricing strategies organised across the commerce site

Documentation

Full Documentation can be found at https://johnhenry.ie/plugins/pricing-rules-relationship/

Support

For support, please visit our GitHub Issues page

License

This package is licensed for free under the MIT License.

Requirements

  • Craft CMS 5.0 or later
  • Craft Commerce 5.0 or later
  • PHP 8.2 or later.
John Henry - Craft CMS Plugins

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固