Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jade-gg/customer-pricing
https://github.com/jade-gg/customer-pricing
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jade-gg/customer-pricing
- Owner: Jade-GG
- License: gpl-3.0
- Created: 2024-09-13T11:31:22.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-13T13:23:37.000Z (4 months ago)
- Last Synced: 2024-09-15T02:13:07.243Z (4 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rapidez Customer Pricing
This package adds Rapidez support for the justbetter/magento2-customer-pricing magento extension. This package will not work without it.
## 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).## License
GNU General Public License v3. Please see [License File](LICENSE) for more information.