{"id":167882,"date":"2022-12-24T17:23:03","date_gmt":"2022-12-24T17:23:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/cart-notify\/"},"modified":"2026-05-27T12:09:01","modified_gmt":"2026-05-27T12:09:01","slug":"cart-notify","status":"publish","type":"plugin","link":"https:\/\/br.wordpress.org\/plugins\/cart-notify\/","author":18265857,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.0","stable_tag":"2.0.0","tested":"7.0","requires":"6.8","requires_php":"7.4","requires_plugins":null,"header_name":"Cart Notify","header_author":"M Hemel Hasan","header_description":"Cart Notify will show notifications when products are added to cart.","assets_banners_color":"b8b7bc","last_updated":"2026-05-27 12:09:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/mhemelhasan.com\/cartnotify","header_author_uri":"https:\/\/mhemelhasan.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1058,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"hemelhasan","date":"2026-05-27 05:28:27"},"1.1.2":{"tag":"1.1.2","author":"hemelhasan","date":"2026-05-27 05:33:39"},"1.1.3":{"tag":"1.1.3","author":"hemelhasan","date":"2026-05-27 11:46:59"},"2.0.0":{"tag":"2.0.0","author":"hemelhasan","date":"2026-05-27 12:09:01"}},"upgrade_notice":{"2.0.0":"<p>Major upgrade focused on WooCommerce compatibility, block-theme support, non-AJAX fallback behavior, and stronger QA\/release workflows.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2838974,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2838974,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2838974,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1.2","1.1.3","2.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Notification preview in frontend add-to-cart flow.","2":"Admin settings: main notification controls.","3":"Admin settings: design and style customization controls."}},"plugin_section":[],"plugin_tags":[264635,264636,7709,286,264637],"plugin_category":[45],"plugin_contributors":[215102],"plugin_business_model":[],"class_list":["post-167882","plugin","type-plugin","status-publish","hentry","plugin_tags-add-to-cart-notification","plugin_tags-cart-notification","plugin_tags-order-notification","plugin_tags-woocommerce","plugin_tags-woocommerce-hpos","plugin_category-ecommerce","plugin_contributors-hemelhasan","plugin_committers-hemelhasan"],"banners":{"banner":"https:\/\/ps.w.org\/cart-notify\/assets\/banner-772x250.jpg?rev=2838974","banner_2x":"https:\/\/ps.w.org\/cart-notify\/assets\/banner-1544x500.jpg?rev=2838974","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/cart-notify\/assets\/icon-128x128.jpg?rev=2838974","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Cart Notify adds a frontend notification after successful WooCommerce add-to-cart actions.<\/p>\n\n<p>This release focuses on compatibility, reliability, and practical store UX:<\/p>\n\n<ul>\n<li>Classic and block-theme add-to-cart support<\/li>\n<li>Success-only notification flow<\/li>\n<li>Non-AJAX fallback for single\/variable\/grouped add-to-cart requests<\/li>\n<li>Settings-driven design and CTA controls<\/li>\n<li>Better accessibility (keyboard close + live region updates)<\/li>\n<li>HPOS and cart\/checkout blocks compatibility declarations<\/li>\n<li>Developer filters and lifecycle events<\/li>\n<\/ul>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Notification rendering only after successful add-to-cart events<\/li>\n<li>Works with WooCommerce classic <code>added_to_cart<\/code> and blocks <code>wc-blocks_added_to_cart<\/code> events<\/li>\n<li>Supports non-AJAX add-to-cart fallback with one-time server notice payload<\/li>\n<li>Product title, image, quantity, variation summary, cart items count, and subtotal metadata<\/li>\n<li>Position controls and style token controls from admin settings<\/li>\n<li>Optional actions: View Cart, Checkout, Continue Shopping<\/li>\n<li>Mobile behavior toggle and reduced-motion support<\/li>\n<\/ul>\n\n<h3>Developer Hooks<\/h3>\n\n<p>Filters:<\/p>\n\n<ul>\n<li><code>cart_notify_should_enqueue_assets<\/code><\/li>\n<li><code>cart_notify_notification_data<\/code><\/li>\n<li><code>cart_notify_message<\/code><\/li>\n<li><code>cart_notify_position<\/code><\/li>\n<li><code>cart_notify_template<\/code><\/li>\n<\/ul>\n\n<p>Frontend events:<\/p>\n\n<ul>\n<li><code>cart_notify_before_render<\/code><\/li>\n<li><code>cart_notify_after_render<\/code><\/li>\n<li><code>cart_notify_notification_shown<\/code><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or install through Plugins &gt; Add New.<\/li>\n<li>Activate <strong>Cart Notify<\/strong>.<\/li>\n<li>Ensure <strong>WooCommerce<\/strong> is installed and active.<\/li>\n<li>Go to <strong>Cart Notify<\/strong> settings in wp-admin and configure notification behavior.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20cart%20notify%20require%20woocommerce%3F\"><h3>Does Cart Notify require WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. The plugin requires WooCommerce and will only run frontend notification logic when WooCommerce is available.<\/p><\/dd>\n<dt id=\"does%20it%20support%20block%20themes%3F\"><h3>Does it support block themes?<\/h3><\/dt>\n<dd><p>Yes. Cart Notify supports WooCommerce block-theme add-to-cart flow through the <code>wc-blocks_added_to_cart<\/code> event.<\/p><\/dd>\n<dt id=\"does%20it%20work%20for%20non-ajax%20single%20product%20submissions%3F\"><h3>Does it work for non-AJAX single product submissions?<\/h3><\/dt>\n<dd><p>Yes. Cart Notify stores a one-time fallback payload in WooCommerce session for non-AJAX success flows and renders it on the next page load.<\/p><\/dd>\n<dt id=\"does%20it%20support%20grouped%20and%20variable%20products%3F\"><h3>Does it support grouped and variable products?<\/h3><\/dt>\n<dd><p>Yes. Successful grouped and variable add-to-cart requests are supported.<\/p><\/dd>\n<dt id=\"does%20it%20support%20external%20products%3F\"><h3>Does it support external products?<\/h3><\/dt>\n<dd><p>External product flow is not treated as a local cart add success notification.<\/p><\/dd>\n<dt id=\"is%20hpos%20supported%3F\"><h3>Is HPOS supported?<\/h3><\/dt>\n<dd><p>Cart Notify declares compatibility for HPOS (<code>custom_order_tables<\/code>) and WooCommerce cart\/checkout blocks.<\/p><\/dd>\n<dt id=\"how%20can%20i%20customize%20payload%20behavior%3F\"><h3>How can I customize payload behavior?<\/h3><\/dt>\n<dd><p>Use <code>cart_notify_notification_data<\/code> and the related message\/position\/template filters.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<p>( May 26, 2026 )\n- Added runtime bootstrap and service-oriented plugin wiring.\n- Added settings repository and sanitized settings access layer.\n- Added WooCommerce integration and compatibility helpers (HPOS + blocks declarations).\n- Added non-AJAX add-to-cart fallback via WooCommerce session payload bridge.\n- Added block-theme event support and classic flow improvements.\n- Added frontend accessibility improvements and richer notification metadata rendering.\n- Added developer filters and frontend lifecycle events.\n- Added QA scripts, unit sanitizer checks, and e2e smoke scaffold.\n- Updated documentation for testing and release preparation.<\/p>\n\n<h4>1.1.3<\/h4>\n\n<p>( May 25, 2026 )\n- Fixed WooCommerce dependency handling to prevent frontend errors when WooCommerce is inactive.\n- Notification now runs on successful WooCommerce AJAX add-to-cart events.\n- Removed frontend debug logs.\n- Cleaned up feature documentation to match the free plugin functionality.<\/p>\n\n<h4>1.1.2<\/h4>\n\n<p>( March 19, 2024 )\n- Improvement performance.\n- AJAX install &amp; activate WooCommerce issues fix.\n- JS improved.<\/p>\n\n<h4>1.1.1<\/h4>\n\n<p>( Jan 10, 2024 )\n- Improvement performance.\n- New design added.\n- A new admin option added.<\/p>\n\n<h4>1.0.0<\/h4>\n\n<p>( Dec 24, 2022 )\n- Initial release.<\/p>","raw_excerpt":"Show accessible, customizable WooCommerce add-to-cart notifications for classic and block themes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/167882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=167882"}],"author":[{"embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hemelhasan"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=167882"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=167882"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=167882"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=167882"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=167882"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/br.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=167882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}