{"id":3047,"date":"2025-12-27T21:05:11","date_gmt":"2025-12-27T21:05:11","guid":{"rendered":"https:\/\/www.swiftcommerce.io\/help\/?post_type=docs&#038;p=3047"},"modified":"2026-03-14T20:19:08","modified_gmt":"2026-03-14T20:19:08","password":"","slug":"add-to-cart","status":"publish","type":"docs","link":"https:\/\/www.swiftcommerce.io\/help\/popups\/add-to-cart\/","title":{"rendered":"Add To Cart Popup"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Added To Cart Popup displays a confirmation modal when customers add products to their cart. This feature improves the shopping experience by providing immediate feedback, showing cart contents, and offering quick navigation to the cart or checkout. It can also increase sales through upselling with related products.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Getting Started<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to&nbsp;<strong>Swift Commerce \u2192 Added To Cart<\/strong>&nbsp;in your WordPress admin<\/li>\n\n\n\n<li>Enable the feature using the master toggle<\/li>\n\n\n\n<li>Configure display settings in the Settings tab<\/li>\n\n\n\n<li>Customize the popup appearance in the Customization tab<\/li>\n\n\n\n<li>Save your changes<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">When a customer adds a product to the cart, a popup will appear confirming the action and providing options to view cart, proceed to checkout, or continue shopping.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Settings Tab<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Display Settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Control where the popup appears on your store.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>All Pages<\/td><td>Show popup on all pages of your store<\/td><\/tr><tr><td>Products Archive Only<\/td><td>Only on shop and category pages<\/td><\/tr><tr><td>Single Product Only<\/td><td>Only on individual product pages<\/td><\/tr><tr><td>Archive &amp; Single Product<\/td><td>Both archive and single product pages<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Upselling Features&nbsp;<em>(Pro)<\/em><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Boost sales by showing additional products in the popup.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Show Related Products<\/td><td>Display products related to the added item<\/td><td>Disabled<\/td><\/tr><tr><td>Number of Related Products<\/td><td>How many related products to show (2-8)<\/td><td>4<\/td><\/tr><tr><td>Show Recommended Products<\/td><td>Display custom recommended products<\/td><td>Disabled<\/td><\/tr><tr><td>Number of Recommended Products<\/td><td>How many recommended products to show<\/td><td>4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use Case:<\/strong>&nbsp;Enable related products to encourage customers to add complementary items to their cart, increasing average order value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Mobile &amp; Animation<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Show on Mobile Devices&nbsp;<em>(Pro)<\/em><\/td><td>Display popup on smartphones and tablets<\/td><td>Enabled<\/td><\/tr><tr><td>Auto-Close Popup<\/td><td>Automatically close popup after delay<\/td><td>Disabled<\/td><\/tr><tr><td>Auto-close delay<\/td><td>Time before auto-close (2-15 seconds)<\/td><td>5 seconds<\/td><\/tr><tr><td>Animation Duration<\/td><td>Speed of popup appear\/disappear (100-500ms)<\/td><td>300ms<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tip:<\/strong>&nbsp;Enable auto-close for a less intrusive experience, especially useful on mobile devices where screen space is limited.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Customization Tab<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Templates<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Choose from pre-designed styles or customize your own:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Template<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Classic<\/td><td>Clean, professional look with subtle shadows<\/td><\/tr><tr><td>Modern Minimal<\/td><td>Sleek, minimal design with sharp edges<\/td><\/tr><tr><td>Vibrant<\/td><td>Bold colors with eye-catching buttons<\/td><\/tr><tr><td>Dark Elegant<\/td><td>Sophisticated dark theme with gold accents<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Selecting a template applies all its preset colors, typography, and styling. You can further customize any setting after applying a template.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Colors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Customize the popup color scheme:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Overlay Color<\/td><td>Background overlay behind popup<\/td><td>#000000<\/td><\/tr><tr><td>Overlay Opacity<\/td><td>Transparency of overlay (0-100%)<\/td><td>50%<\/td><\/tr><tr><td>Background Color<\/td><td>Popup container background<\/td><td>#ffffff<\/td><\/tr><tr><td>Text Color<\/td><td>General text color<\/td><td>#374151<\/td><\/tr><tr><td>Heading Color<\/td><td>Title text color<\/td><td>#111827<\/td><\/tr><tr><td>Price Color<\/td><td>Product price color<\/td><td>#059669<\/td><\/tr><tr><td>Border Color<\/td><td>Popup border color<\/td><td>#e5e7eb<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Button Colors<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Customize primary and secondary button appearance:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Primary Buttons (View Cart, Checkout):<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Background<\/td><td>Button fill color<\/td><td>#18181b<\/td><\/tr><tr><td>Text<\/td><td>Button text color<\/td><td>#ffffff<\/td><\/tr><tr><td>Hover Background<\/td><td>Color on mouse hover<\/td><td>#27272a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Secondary Button (Continue Shopping):<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Background<\/td><td>Button fill color<\/td><td>#f4f4f5<\/td><\/tr><tr><td>Text<\/td><td>Button text color<\/td><td>#18181b<\/td><\/tr><tr><td>Hover Background<\/td><td>Color on mouse hover<\/td><td>#e4e4e7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Typography<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Options<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Font Family<\/td><td>Theme Default, Inter, Roboto, Open Sans, Poppins, Lato, Montserrat<\/td><td>Theme Default<\/td><\/tr><tr><td>Body Font Size<\/td><td>12px, 13px, 14px, 15px, 16px, 18px<\/td><td>14px<\/td><\/tr><tr><td>Heading Font Size<\/td><td>16px, 18px, 20px, 22px, 24px<\/td><td>18px<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Spacing &amp; Dimensions<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Range<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Popup Width<\/td><td>Width of the popup container<\/td><td>320-800px<\/td><td>480px<\/td><\/tr><tr><td>Content Padding<\/td><td>Inner spacing of popup content<\/td><td>12-48px<\/td><td>24px<\/td><\/tr><tr><td>Item Spacing<\/td><td>Space between elements inside popup<\/td><td>8-32px<\/td><td>16px<\/td><\/tr><tr><td>Max Height<\/td><td>Maximum popup height<\/td><td>&#8211;<\/td><td>80vh<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Border &amp; Shadow<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Options<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Border Width<\/td><td>0-4px slider<\/td><td>1px<\/td><\/tr><tr><td>Border Radius<\/td><td>None (Square), Small (4px), Medium (8px), Large (12px), Extra Large (16px), Rounded (24px)<\/td><td>Large (12px)<\/td><\/tr><tr><td>Shadow<\/td><td>None, Small, Medium, Large, Extra Large<\/td><td>Large<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Branding<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Description<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Show &#8220;Powered by Swift Commerce&#8221;<\/td><td>Display branding link at bottom of popup<\/td><td>Disabled<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Popup Buttons&nbsp;<em>(Pro)<\/em><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Configure which buttons appear and their text:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Button<\/th><th>Description<\/th><th>Default Text<\/th><\/tr><\/thead><tbody><tr><td>View Cart Button<\/td><td>Navigate to cart page<\/td><td>&#8220;View Cart&#8221;<\/td><\/tr><tr><td>Checkout Button<\/td><td>Navigate to checkout<\/td><td>&#8220;Checkout&#8221;<\/td><\/tr><tr><td>Continue Shopping Button<\/td><td>Close popup<\/td><td>&#8220;Continue Shopping&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Each button can be:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enabled or disabled individually<\/li>\n\n\n\n<li>Custom text (when enabled)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How It Works<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Customer Experience<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Product Added<\/strong>&nbsp;&#8211; Customer clicks &#8220;Add to Cart&#8221; on any product<\/li>\n\n\n\n<li><strong>Popup Appears<\/strong>&nbsp;&#8211; Modal slides in with product confirmation<\/li>\n\n\n\n<li><strong>Information Displayed<\/strong>&nbsp;&#8211; Shows product name, image, price, and quantity<\/li>\n\n\n\n<li><strong>Cart Summary<\/strong>&nbsp;&#8211; Displays updated cart total and item count<\/li>\n\n\n\n<li><strong>Action Options<\/strong>&nbsp;&#8211; Customer chooses: View Cart, Checkout, or Continue Shopping<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Display Logic<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The popup respects your display settings:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Page Filtering:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All Pages: Popup works everywhere<\/li>\n\n\n\n<li>Archive Only: Shop, category, and tag pages<\/li>\n\n\n\n<li>Single Only: Individual product pages<\/li>\n\n\n\n<li>Both: Combination of archive and single<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Product Filtering:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All Products: Every product triggers popup<\/li>\n\n\n\n<li>Exclude Specific: Popup for all except blacklisted products<\/li>\n\n\n\n<li>Include Specific: Popup only for whitelisted products<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Cart Display Options<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>Behavior<\/th><\/tr><\/thead><tbody><tr><td>Added Product Only<\/td><td>Shows just the product that was added<\/td><\/tr><tr><td>Full Cart<\/td><td>Shows all items currently in the cart<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Related Products&nbsp;<em>(Pro)<\/em><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When &#8220;Show Related Products&#8221; is enabled:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>WooCommerce determines related products based on:\n<ul class=\"wp-block-list\">\n<li>Same categories<\/li>\n\n\n\n<li>Same tags<\/li>\n\n\n\n<li>Linked products (up-sells, cross-sells)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Products display in a grid below the cart content<\/li>\n\n\n\n<li>Each related product shows:\n<ul class=\"wp-block-list\">\n<li>Product image<\/li>\n\n\n\n<li>Product name<\/li>\n\n\n\n<li>Price<\/li>\n\n\n\n<li>Link to product page<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Configuration:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set the number of products (2-8)<\/li>\n\n\n\n<li>Products are pulled from WooCommerce&#8217;s related products logic<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Mobile Behavior&nbsp;<em>(Pro)<\/em><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The popup is fully responsive by default. With Pro, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Disable on Mobile<\/strong>&nbsp;&#8211; Turn off popup for smaller screens<\/li>\n\n\n\n<li>Useful if you prefer a different mobile cart experience<\/li>\n\n\n\n<li>Mobile detection uses WordPress&#8217;s&nbsp;<code>wp_is_mobile()<\/code>&nbsp;function<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Best Practices for Mobile:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep popup width at 320-400px for small screens<\/li>\n\n\n\n<li>Enable auto-close to reduce friction<\/li>\n\n\n\n<li>Consider shorter animation duration (100-200ms)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Auto-Close Feature<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When enabled, the popup automatically closes after a specified delay:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Setting<\/th><th>Range<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>Auto-Close Delay<\/td><td>2-15 seconds<\/td><td>5 seconds<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When to Use:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>High-volume stores where customers add multiple items quickly<\/li>\n\n\n\n<li>Mobile shopping experiences<\/li>\n\n\n\n<li>When you want minimal interruption to browsing<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong>&nbsp;Customers can still manually close the popup before auto-close triggers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Added To Cart Popup displays a confirmation modal when customers add products to their cart. This feature improves the shopping experience by providing immediate feedback, showing cart contents, and offering quick navigation to the cart or checkout. It can also increase sales through upselling with related products. Getting Started When a customer adds a [&hellip;]<\/p>\n","protected":false},"author":101,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[74],"doc_tag":[],"class_list":["post-3047","docs","type-docs","status-publish","hentry","doc_category-popups"],"year_month":"2026-09","word_count":878,"total_views":"133","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Mansoor Ahmad","author_nicename":"helpadmin","author_url":"https:\/\/www.swiftcommerce.io\/help\/author\/helpadmin\/"},"doc_category_info":[{"term_name":"Popups","term_url":"https:\/\/www.swiftcommerce.io\/help\/docs-category\/popups\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/users\/101"}],"replies":[{"embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/comments?post=3047"}],"version-history":[{"count":3,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3047\/revisions"}],"predecessor-version":[{"id":3265,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/docs\/3047\/revisions\/3265"}],"wp:attachment":[{"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/media?parent=3047"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/doc_category?post=3047"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.swiftcommerce.io\/help\/wp-json\/wp\/v2\/doc_tag?post=3047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}