{"id":18254867,"url":"https://github.com/fsspencer/magento2-disableaddtocart","last_synced_at":"2025-04-08T21:48:43.364Z","repository":{"id":202905710,"uuid":"109601677","full_name":"fsspencer/magento2-disableAddToCart","owner":"fsspencer","description":"Magento 2 extension sample to disable the Add to Cart functionality","archived":false,"fork":false,"pushed_at":"2017-11-05T17:48:52.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T17:18:07.105Z","etag":null,"topics":["magento","magento-extension","magento2","magento2-extension","magento2-module"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fsspencer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-11-05T17:45:18.000Z","updated_at":"2017-11-05T17:48:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"947eb54a-0d58-4e19-a942-d4d3954750c4","html_url":"https://github.com/fsspencer/magento2-disableAddToCart","commit_stats":null,"previous_names":["fsspencer/magento2-disableaddtocart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsspencer%2Fmagento2-disableAddToCart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsspencer%2Fmagento2-disableAddToCart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsspencer%2Fmagento2-disableAddToCart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsspencer%2Fmagento2-disableAddToCart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fsspencer","download_url":"https://codeload.github.com/fsspencer/magento2-disableAddToCart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247934808,"owners_count":21020724,"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-extension","magento2","magento2-extension","magento2-module"],"created_at":"2024-11-05T10:13:50.722Z","updated_at":"2025-04-08T21:48:43.347Z","avatar_url":"https://github.com/fsspencer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento 2 Disable Add To Cart\nThis is a sample extension to show you how to prevent a customer to Add a product to the cart.\nYou can add your custom logic before performing this restriction.\n\n## Installation\n\nNOTE:  This extension uses a plugin (iterator) on the \"addProduct()\" method to prevent a product to be added to the cart.\n\n1. Clone this repository\n2. Copy the Codealist directory into your app/code directory\n3. Execute: php bin/magento setup:upgrade\n\nNow when you try to add a product to your cart, you'll receive an error message telling you that the operation cannot be performed.\n\n## Compatibility\n- Magento 2.0\n- Magento 2.1\n- Magento 2.2","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsspencer%2Fmagento2-disableaddtocart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffsspencer%2Fmagento2-disableaddtocart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsspencer%2Fmagento2-disableaddtocart/lists"}