{"id":191858,"date":"2024-05-08T10:28:06","date_gmt":"2024-05-08T10:28:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/one-item-allow-cart\/"},"modified":"2024-05-08T10:27:35","modified_gmt":"2024-05-08T10:27:35","slug":"one-item-allow-cart","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/one-item-allow-cart\/","author":22025952,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"6.4.8","requires":"","requires_php":"","requires_plugins":null,"header_name":"One Item Allow Cart","header_author":"Meet Raj","header_description":"This plugin is restricts the number of products that can be added to the cart to just one. This means that if a customer adds a new product to the cart, any existing product will be removed automatically, ensuring that only one product remains in the cart.","assets_banners_color":"","last_updated":"2024-05-08 10:27:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/meetraj093.wordpress.com\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":791,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3047,286],"plugin_category":[45],"plugin_contributors":[227504],"plugin_business_model":[],"class_list":["post-191858","plugin","type-plugin","status-publish","hentry","plugin_tags-cart","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-meetraj","plugin_committers-meetraj093"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/one-item-allow-cart.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is restricts the number of products that can be added to the cart to just one. This means that if a customer adds a new product to the cart, any existing product will be removed automatically, ensuring that only one product remains in the cart.<\/p>\n\n<h4>How does One-Item-Allow-Cart work?<\/h4>\n\n<p>One-Item-Allow-Cart hooks into WooCommerce's cart handling process and restricts the number of products allowed in the cart to just one. Whenever a new product is added to the cart, any existing product is removed automatically.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>one-item-allow-cart<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the \\'Plugins\\' menu in WordPress.<\/li>\n<li>That's it you are ready to go.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"This plugin is restricts the number of products that can be added to the cart to just one. This means that if a customer adds a new product to the car &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/191858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=191858"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/meetraj093"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=191858"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=191858"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=191858"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=191858"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=191858"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=191858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}