{"id":128166,"date":"2020-09-04T06:08:29","date_gmt":"2020-09-04T06:08:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/default-attributes-for-woocommerce\/"},"modified":"2025-12-23T07:22:46","modified_gmt":"2025-12-23T07:22:46","slug":"default-attributes-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/default-attributes-for-woocommerce\/","author":17578689,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.1","stable_tag":"1.2.1","tested":"6.9.4","requires":"5.2","requires_php":"7.0","requires_plugins":null,"header_name":"Default Attributes for WooCommerce","header_author":"Condless","header_description":"WooCommerce plugin for creating rules on how default attributes will be set in variable products.","assets_banners_color":"641e31","last_updated":"2025-12-23 07:22:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/en.condless.com\/default-attributes-for-woocommerce\/","header_author_uri":"https:\/\/en.condless.com\/","rating":5,"author_block_rating":0,"active_installs":400,"downloads":10431,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.8":{"tag":"1.1.8","author":"condless","date":"2024-11-12 14:22:50"},"1.1.9":{"tag":"1.1.9","author":"condless","date":"2024-11-12 14:22:50"},"1.2":{"tag":"1.2","author":"condless","date":"2025-05-08 10:40:29"},"1.2.1":{"tag":"1.2.1","author":"condless","date":"2025-12-23 07:22:46"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":4},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2374957,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2482740,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.8","1.1.9","1.2","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.PNG":{"filename":"screenshot-1.PNG","revision":2374957,"resolution":"1","location":"assets","locale":""},"screenshot-2.PNG":{"filename":"screenshot-2.PNG","revision":2374957,"resolution":"2","location":"assets","locale":""},"screenshot-3.PNG":{"filename":"screenshot-3.PNG","revision":2374957,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Default Attributes Plugin Settings","2":"Per Attribute Settings","3":"Product page default attribute"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9032,5209,12448,6602],"plugin_category":[],"plugin_contributors":[184227],"plugin_business_model":[],"class_list":["post-128166","plugin","type-plugin","status-publish","hentry","plugin_tags-attributes","plugin_tags-default","plugin_tags-stock","plugin_tags-variations","plugin_contributors-condless","plugin_committers-condless"],"banners":{"banner":"https:\/\/ps.w.org\/default-attributes-for-woocommerce\/assets\/banner-772x250.jpg?rev=2482740","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/default-attributes-for-woocommerce\/assets\/icon-256x256.png?rev=2374957","icon_2x":"https:\/\/ps.w.org\/default-attributes-for-woocommerce\/assets\/icon-256x256.png?rev=2374957","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/default-attributes-for-woocommerce\/assets\/screenshot-1.PNG?rev=2374957","caption":"Default Attributes Plugin Settings"},{"src":"https:\/\/ps.w.org\/default-attributes-for-woocommerce\/assets\/screenshot-2.PNG?rev=2374957","caption":"Per Attribute Settings"},{"src":"https:\/\/ps.w.org\/default-attributes-for-woocommerce\/assets\/screenshot-3.PNG?rev=2374957","caption":"Product page default attribute"}],"raw_content":"<!--section=description-->\n<p>WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.<\/p>\n\n<p><a href=\"https:\/\/en.condless.com\/default-attributes-for-woocommerce\/\">Documentation<\/a> | <a href=\"https:\/\/en.condless.com\/contact\/\">Contact<\/a><\/p>\n\n<p>Variable product of T-shirt with color attribute (White\/Blue\/Black) and size attribute (S\/M\/XL):\nIf only Black T-shirts are in-stock: default color (Black), default size (none).\nIf only Small T-shirts are in-stock: default color (none), default size (Small).\nIf only White and XL T-shirts are in-stock: default color (White), default size (XL).<\/p>\n\n<h4>How It Works<\/h4>\n\n<ol>\n<li>Before product variations is displayed to the customer, the plugin will check each attribute, and if there is only 1 in-stock option it will be set as the default.<\/li>\n<\/ol>\n\n<h4>Features<\/h4>\n\n<ul>\n<li><strong>Stock<\/strong>: Set option as default when it's the only 1 in-stock.<\/li>\n<li><strong>Per Attribute<\/strong>: Set specific option as default in all products with that attribute (from the Edit Attribute screen)<\/li>\n<li><strong>Top<\/strong>: Set as default the first option of each attribute.<\/li>\n<li><strong>Out of stock<\/strong>: Disable out of stock variations.<\/li>\n<li><strong>Add to Cart button<\/strong>: In archive pages display for variable products the attribute name instead of: \"Select options\".<\/li>\n<li><strong>Select options<\/strong>: In single product pages remove the select options text if default attribute is set.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Minimum Requirements<\/h4>\n\n<p>WordPress 5.2 or greater\nPHP 7.0 or greater\nWooCommerce 3.4 or greater<\/p>\n\n<h4>Automatic installation<\/h4>\n\n<ol>\n<li>Go to your Dashboard =&gt; Plugins =&gt; Add new<\/li>\n<li>In the search form write: Condless<\/li>\n<li>When the search return the result, click on the Install Now button<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Download the plugin from this page clicking on the Download button<\/li>\n<li>Go to your Dashboard =&gt; Plugins =&gt; Add new<\/li>\n<li>Now select Upload Plugin button<\/li>\n<li>Click on Select file button and select the file you just download<\/li>\n<li>Click on Install Now button and the Activate Plugin<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='why%20the%20default%20attribute%20was%20not%20set%20properly%3F'><h3>Why the default attribute was not set properly?<\/h3><\/dt>\n<dd><p>The slug and the names of the attributes and the terms must be in latin letters.<\/p><\/dd>\n<dt id='why%20the%20default%20attribute%20was%20not%20set%20by%20the%20stock%3F'><h3>Why the default attribute was not set by the stock?<\/h3><\/dt>\n<dd><ul>\n<li>Wait 1 minute for the plugin cache to be refreshed (or disable cache- instructions in docs)<\/li>\n<li>Not all the in-stock variations belong to the same attribute option<\/li>\n<li>The product has more variations than the configured max amount to calculate for (set via plugin settings)<\/li>\n<\/ul><\/dd>\n<dt id='how%20to%20set%20site-wide%20default%20per%20attribute%3F'><h3>How to set site-wide default per attribute?<\/h3><\/dt>\n<dd><p>Dashboard =&gt; Products =&gt; Attributes =&gt; Edit =&gt; Default Form Values. Attribute must be used for variation in at least 1 product.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1 - December 23, 2025<\/h4>\n\n<ul>\n<li>Enhancement - WordPress version compatibility<\/li>\n<\/ul>\n\n<h4>1.2 - May 8, 2025<\/h4>\n\n<ul>\n<li>Enhancement - WordPress version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.9 - November 12, 2024<\/h4>\n\n<ul>\n<li>Enhancement - WordPress version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.8 - May 22, 2024<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.7 - March 1, 2024<\/h4>\n\n<ul>\n<li>Enhancement - WordPress version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.6 - October 12, 2023<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.5 - June 30, 2023<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.4 - March 18, 2023<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.3 - December 22, 2022<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.2 - August 19, 2022<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.1.1 - June 1, 2022<\/h4>\n\n<ul>\n<li>Dev - Filter hook to disable plugin's cache<\/li>\n<\/ul>\n\n<h4>1.1 - April 10, 2022<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.0.9 - February 27, 2022<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.0.8 - December 25, 2021<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.0.7 - October 20, 2021<\/h4>\n\n<ul>\n<li>Enhancement - WooCommerce version compatibility<\/li>\n<\/ul>\n\n<h4>1.0.6 - July 28, 2021<\/h4>\n\n<ul>\n<li>Dev - WP Compatibility<\/li>\n<\/ul>\n\n<h4>1.0.5 - June 30, 2021<\/h4>\n\n<ul>\n<li>Dev - WP Compatibility<\/li>\n<\/ul>\n\n<h4>1.0.4 - April 7, 2021<\/h4>\n\n<ul>\n<li>Feature - Filter products to apply<\/li>\n<\/ul>\n\n<h4>1.0.3 - February 27, 2021<\/h4>\n\n<ul>\n<li>Feature - Global and local attributes compatibility<\/li>\n<\/ul>\n\n<h4>1.0.2 - February 13, 2021<\/h4>\n\n<ul>\n<li>Feature - Filter transients expiration time<\/li>\n<\/ul>\n\n<h4>1.0.1 - December 23, 2020<\/h4>\n\n<ul>\n<li>Feature - Default per attribute<\/li>\n<\/ul>\n\n<h4>1.0 - August 29, 2020<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/128166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=128166"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/condless"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=128166"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=128166"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=128166"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=128166"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=128166"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=128166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}