定制 rapidez/customer-pricing 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rapidez/customer-pricing

最新稳定版本:4.1.0

Composer 安装命令:

composer require rapidez/customer-pricing

包简介

Support for the justbetter/magento2-customer-pricing magento extension

README 文档

README

This package adds Rapidez support for the justbetter/magento2-customer-pricing magento extension. This package will not work without this extension.

Installation

composer require rapidez/customer-pricing

Usage

This adds to the Product model:

  • A customerPricing relation that retrieves all customer prices and tiers for the given product
  • The customerPrice(int $customerId, int $quantity = 1) function which returns a customer price at the given tier, or null when none is found.
  • The customerTierPrices(int $customerId) function which returns all of the tier prices for a given customer (if any).

This package also adds a simple frontend implementation that can be used by adding the customer-price component onto your page. For example:

<customer-price
    v-bind:product-id="addToCart.simpleProduct.entity_id"
    v-bind:quantity="addToCart.qty"
    v-slot="{ customerPrice }"
>
    <span>@{{ customerPrice || addToCart.price }}</span>
</customer-price>

Requests made for this component get bundled together (collected over 100ms), allowing this to be used the same way in product listings.

License

GNU General Public License v3. Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2024-09-18