承接 justbetter/magento2-customer-pricing 相关项目开发

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

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

justbetter/magento2-customer-pricing

最新稳定版本:1.2.4

Composer 安装命令:

composer require justbetter/magento2-customer-pricing

包简介

Customer specific pricing module for Magento 2

README 文档

README

Magento 2 module that enables prices for specific customers.

Features

  • Allows for storing customer specific prices in the database via the API
  • Sets the customer specific prices on category and product pages
  • Sets the customer specific prices in the cart and checkout

Installation

composer require justbetter/magento2-customer-pricing
bin/magento setup:upgrade

How does it work?

Magento 2 provides a final price event (catalog_product_get_final_price) in which we can override the product price in the checkout / cart.

For the product and category pages we hook into the catalog_product_collection_load_after to set the final price of the products.

We store the customer prices in a database table called customer_pricing.

Updating Prices

This module provides an API endpoint for updating prices.

Make a POST request to: customer-pricing/{sku} with the following payload:

{
  "customerPrices": [
    {
      "customer_id": 10,
      "quantity": 10,
      "price": 9.99
    },
    {
      "customer_id": 20,
      "quantity": 1,
      "price": 8.99
    }
  ]
}

Current Limitations

Due to the simplicity of this module there are several limitations. We accept non-breaking PR's to accept functionality.

Website / store specific pricing

This module currently does not support pricing for specific stores / websites because we do not store a website/store id with each price.

No adding/updating in the Magento 2 backend

It is currently only possible to view and delete customer specific prices in the backend.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固