{"id":20380521,"url":"https://github.com/peterbrain/magento2-salable-qty","last_synced_at":"2025-08-25T00:08:18.452Z","repository":{"id":75894299,"uuid":"605288252","full_name":"PeterBrain/magento2-salable-qty","owner":"PeterBrain","description":"Display a custom message about the salable quantity on the product detail page. E.g. Only x items left! Disable the Add to cart button for products without salable quantity.","archived":false,"fork":false,"pushed_at":"2025-02-03T16:23:33.000Z","size":131,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T17:28:39.216Z","etag":null,"topics":["magento","magento-2","magento-extension","magento-module","magento2","magento2-extension","magento2-extension-free","magento2-module"],"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/PeterBrain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T21:03:40.000Z","updated_at":"2025-02-03T16:23:36.000Z","dependencies_parsed_at":"2025-01-15T06:49:11.356Z","dependency_job_id":"ef6bb8b3-b282-41e0-a20a-18ca993511b7","html_url":"https://github.com/PeterBrain/magento2-salable-qty","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"1d6d36ccc8aec02eb14e372c027db5894710e2e6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterBrain%2Fmagento2-salable-qty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterBrain%2Fmagento2-salable-qty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterBrain%2Fmagento2-salable-qty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterBrain%2Fmagento2-salable-qty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterBrain","download_url":"https://codeload.github.com/PeterBrain/magento2-salable-qty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241929782,"owners_count":20044026,"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":["magento","magento-2","magento-extension","magento-module","magento2","magento2-extension","magento2-extension-free","magento2-module"],"created_at":"2024-11-15T02:07:40.423Z","updated_at":"2025-03-04T22:23:11.956Z","avatar_url":"https://github.com/PeterBrain.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento 2 Module - SalableQty\n\nPackage name: `peterbrain/magento2-salable-qty`\n\n- [Magento 2 Module - SalableQty](#magento-2-module---salableqty)\n  - [Main Functionalities](#main-functionalities)\n  - [Installation](#installation)\n    - [Method 1: Composer (recommended)](#method-1-composer-recommended)\n    - [Method 2: Zip file (not recommended)](#method-2-zip-file-not-recommended)\n    - [Enable \\\u0026 deploy](#enable--deploy)\n  - [Usage](#usage)\n\n## Main Functionalities\n\n- Display a custom message about the salable quantity on the product detail page.\n  - Customizable message: Only x item(s) left!\n  - Customizable threshold\n- Display custom message for products without salable quantity. This is the case if a product quantity equals 1 and is ordered, but is not yet shipped. The default behavior of Magento 2 is to display an error message that the requested quantity is no longer available after a click on the Add to cart button. Not ideal, because this can cause confusion as the product will continue to be displayed as \"in stock\" until it is shipped.\n  - Option to disable the Add to cart button\n  - Option to show a lock symbol on the Add to Cart button\n  - Customizable message: This product has been sold recently and is no longer available.\n\nDisplay custom message for products with salable quantity at or below threshold:\n![Display custom message for products with salable quantity at or below threshold.](https://github.com/peterbrain/magento2-salable-qty/blob/media/salable-qty_frontend-threshold.jpg?raw=true)\nDisable Add to cart button for products without salable quantity:\n![Disable Add to cart button for products without salable quantity.](https://github.com/peterbrain/magento2-salable-qty/blob/media/salable-qty_frontend-disabled.jpg?raw=true)\nAdmin configuration:\n![Admin configuration](https://github.com/peterbrain/magento2-salable-qty/blob/media/salable-qty_admin.jpg?raw=true)\n\n## Installation\n\n### Method 1: Composer (recommended)\n\n```bash\ncomposer require peterbrain/magento2-salable-qty\n```\n\n### Method 2: Zip file (not recommended)\n\n- Unzip the zip file in `app/code/PeterBrain`\n\nThis extension requires [PeterBrain Core](https://github.com/PeterBrain/magento2-peterbrain-core). Ensure that you have it installed prior to installing this module. Use Composer to install it automatically with this module.\n\n### Enable \u0026 deploy\n\n```bash\nbin/magento module:enable PeterBrain_SalableQty\nbin/magento setup:upgrade\nbin/magento setup:static-content:deploy\nbin/magento cache:flush\n```\n\n## Usage\n\n- Enable module output in `Stores \u003e Configuration \u003e PeterBrain Extensions \u003e Salable Quantity \u003e General Configuration`\n- Set a custom message for products with salable quantity is zero\n- Disable the add to cart button if salable quantity is zero\n- Set a custom minimum  salable quantity threshold\n- Set a custom message for salable product quantity at or below the custom threshold\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterbrain%2Fmagento2-salable-qty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterbrain%2Fmagento2-salable-qty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterbrain%2Fmagento2-salable-qty/lists"}