{"id":28509388,"url":"https://github.com/justbetter/magento2-customer-pricing","last_synced_at":"2025-07-02T23:31:19.139Z","repository":{"id":180154147,"uuid":"657071535","full_name":"justbetter/magento2-customer-pricing","owner":"justbetter","description":"Magento 2 module that enables customer specific pricing","archived":false,"fork":false,"pushed_at":"2024-10-02T09:13:12.000Z","size":33,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-08T22:09:08.747Z","etag":null,"topics":["customer-pricing","magento","magento2","pricing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justbetter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-22T08:55:42.000Z","updated_at":"2024-10-02T09:12:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"60aab8e9-26db-43fb-b588-81798745e1c1","html_url":"https://github.com/justbetter/magento2-customer-pricing","commit_stats":null,"previous_names":["justbetter/magento2-customer-pricing"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/justbetter/magento2-customer-pricing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-customer-pricing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-customer-pricing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-customer-pricing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-customer-pricing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justbetter","download_url":"https://codeload.github.com/justbetter/magento2-customer-pricing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbetter%2Fmagento2-customer-pricing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263232495,"owners_count":23434677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customer-pricing","magento","magento2","pricing"],"created_at":"2025-06-08T22:08:20.141Z","updated_at":"2025-07-02T23:31:19.081Z","avatar_url":"https://github.com/justbetter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JustBetter Customer Pricing\n\nMagento 2 module that enables prices for specific customers.\n\n## Features\n\n- Allows for storing customer specific prices in the database via the API\n- Sets the customer specific prices on category and product pages\n- Sets the customer specific prices in the cart and checkout\n\n## Installation\n\n```shell\ncomposer require justbetter/magento2-customer-pricing\nbin/magento setup:upgrade\n```\n\n## How does it work?\n\nMagento 2 provides a final price event (`catalog_product_get_final_price`) in which we can override the product price in the checkout / cart.\n\nFor the product and category pages we hook into the `catalog_product_collection_load_after` to set the final price of the products.\n\nWe store the customer prices in a database table called `customer_pricing`.\n\n## Updating Prices\n\nThis module provides an API endpoint for updating prices.\n\nMake a POST request to: `customer-pricing/{sku}` with the following payload:\n```json\n{\n  \"customerPrices\": [\n    {\n      \"customer_id\": 10,\n      \"quantity\": 10,\n      \"price\": 9.99\n    },\n    {\n      \"customer_id\": 20,\n      \"quantity\": 1,\n      \"price\": 8.99\n    }\n  ]\n}\n```\n\n## Current Limitations\n\nDue to the simplicity of this module there are several limitations.\nWe accept non-breaking PR's to accept functionality.\n\n### Website / store specific pricing\n\nThis module currently does not support pricing for specific stores / websites because we do not store a website/store id with each price.\n\n### No adding/updating in the Magento 2 backend\n\nIt is currently only possible to view and delete customer specific prices in the backend.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Vincent Boon](https://github.com/VincentBean)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbetter%2Fmagento2-customer-pricing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustbetter%2Fmagento2-customer-pricing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbetter%2Fmagento2-customer-pricing/lists"}