{"id":303861,"date":"2026-04-30T13:18:38","date_gmt":"2026-04-30T13:18:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/anywhere-add-to-cart-customizable-shopping-shortcode\/"},"modified":"2026-04-30T13:23:52","modified_gmt":"2026-04-30T13:23:52","slug":"anywhere-add-to-cart","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/anywhere-add-to-cart\/","author":23486559,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"1.0.2","tested":"6.9.4","requires":"5.0","requires_php":"8.0","requires_plugins":null,"header_name":"Anywhere Add to Cart: Customizable Shopping Shortcode","header_author":"Prithivi","header_description":"Add a customizable 'Add to Cart' button anywhere using [anywatc] or [anywatc_cart].","assets_banners_color":"e8f2f3","last_updated":"2026-04-30 13:23:52","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":0,"downloads":61,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"prithivimorya","date":"2026-04-30 13:23:52"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3520106,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3520106,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3520109,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3519556,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3519556,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3519556,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3519556,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"The Styling Dashboard: Customize colors, font sizes, and weights with a real-time preview.","2":"Variable Product Output: An example of the shortcode rendering a variable product with dropdowns.","3":"Shortcode Usage: How to easily implement the shortcode within the WordPress editor."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3175,45251,80,261551,286],"plugin_category":[43,45],"plugin_contributors":[261552],"plugin_business_model":[],"class_list":["post-303861","plugin","type-plugin","status-publish","hentry","plugin_tags-add-to-cart","plugin_tags-custom-button","plugin_tags-shortcode","plugin_tags-variation-selector","plugin_tags-woocommerce","plugin_category-customization","plugin_category-ecommerce","plugin_contributors-prithivimorya","plugin_committers-prithivimorya"],"banners":{"banner":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/banner-772x250.png?rev=3520109","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/icon-128x128.png?rev=3520106","icon_2x":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/icon-256x256.png?rev=3520106","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/screenshot-1.png?rev=3519556","caption":"The Styling Dashboard: Customize colors, font sizes, and weights with a real-time preview."},{"src":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/screenshot-2.png?rev=3519556","caption":"Variable Product Output: An example of the shortcode rendering a variable product with dropdowns."},{"src":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/screenshot-3.png?rev=3519556","caption":"Shortcode Usage: How to easily implement the shortcode within the WordPress editor."},{"src":"https:\/\/ps.w.org\/anywhere-add-to-cart\/assets\/screenshot-4.png?rev=3519556","caption":""}],"raw_content":"<!--section=description-->\n<p><strong>Anywhere Add to Cart<\/strong> is a lightweight and secure plugin designed to give you total control over your WooCommerce purchase buttons. Whether you are building a custom landing page, a blog post, or a unique layout in a page builder like Elementor or Divi, this plugin allows you to drop a fully functional 'Add to Cart' button anywhere using a simple shortcode.<\/p>\n\n<p>Unlike standard shortcodes, this plugin is optimized for <strong>Variable Products<\/strong>, handling attribute selection and live price updates seamlessly. It also features a built-in styling dashboard so you can match your buttons to your brand without writing a single line of CSS.<\/p>\n\n<h3>\ud83d\ude80 Key Features<\/h3>\n\n<ul>\n<li><strong>Smart Shortcode:<\/strong> Use <code>[anywatc]<\/code> to automatically detect product IDs on single product pages.<\/li>\n<li><strong>Specific Targeting:<\/strong> Use <code>[anywatc id=\"123\"]<\/code> to display a button for any specific product on any page.<\/li>\n<li><strong>Variation Support:<\/strong> Full support for WooCommerce variations, including dropdowns and price updates.<\/li>\n<li><strong>Style Customizer:<\/strong> Easily change button colors, typography, and border styles from the admin menu.<\/li>\n<li><strong>Performance Optimized:<\/strong> Scripts and styles are enqueued correctly to ensure fast page load times.<\/li>\n<li><strong>Developer Friendly:<\/strong> Built with security best practices, including strict output escaping and input sanitization.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>anywhere-add-to-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>Navigate to the <strong>Anywhere ATC<\/strong> menu in your WordPress dashboard sidebar to configure your button styles.<\/li>\n<li>Use the shortcode <code>[anywatc]<\/code> or <code>[anywatc_cart]<\/code> in any page, post, or widget area.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20find%20a%20product%20id%3F\"><h3>How do I find a Product ID?<\/h3><\/dt>\n<dd><p>Go to <strong>Products &gt; All Products<\/strong> in your dashboard. Hover over a product name, and the ID will appear (e.g., ID: 123).<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20builders%3F\"><h3>Does it work with Page Builders?<\/h3><\/dt>\n<dd><p>Yes! It is fully compatible with Gutenberg, Elementor, Divi, Beaver Builder, and WPBakery. Simply use the 'Shortcode' block or widget.<\/p><\/dd>\n<dt id=\"is%20it%20translation-ready%3F\"><h3>Is it translation-ready?<\/h3><\/dt>\n<dd><p>Yes, the plugin uses standard WordPress internationalization (i18n) functions and is ready for translation.<\/p><\/dd>\n<dt id=\"can%20i%20use%20it%20for%20variable%20products%3F\"><h3>Can I use it for Variable Products?<\/h3><\/dt>\n<dd><p>Absolutely. The plugin will automatically render the variation selection dropdowns and handle the \"Add to Cart\" logic just like a standard product page.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Refactored script loading to use <code>wp_add_inline_script()<\/code> for better compliance.<\/li>\n<li>Updated all function and option prefixes to <code>anywatc_<\/code> to prevent naming collisions.<\/li>\n<li>Updated \"Tested up to\" version to 6.9.<\/li>\n<li>Verified compatibility with PHP 8.0+.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>SECURITY: Implemented strict output escaping using <code>esc_html_e()<\/code> and <code>esc_attr()<\/code>.<\/li>\n<li>SECURITY: Added <code>wp_unslash()<\/code> and rigorous sanitization for all admin settings.<\/li>\n<li>FIXED: Resolved trademark naming restrictions for the WordPress.org repository.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"Add a customizable &#039;Add to Cart&#039; button anywhere on your site with a simple shortcode. Perfect for landing pages and custom layouts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/303861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=303861"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/prithivimorya"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=303861"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=303861"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=303861"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=303861"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=303861"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=303861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}