{"id":311,"date":"2020-06-13T15:56:56","date_gmt":"2020-06-13T15:56:56","guid":{"rendered":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/?page_id=311"},"modified":"2020-06-15T10:30:15","modified_gmt":"2020-06-15T10:30:15","slug":"label-button-variation-swatches","status":"publish","type":"page","link":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/label-button-variation-swatches\/","title":{"rendered":"Button Variation Swatches"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-content\/uploads\/sites\/2\/2020\/06\/button-swatches-.gif\" alt=\"\" class=\"wp-image-357\"\/><\/figure>\n\n\n\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/product\/originals-trefoil-backpack\/\" target=\"_blank\" rel=\"noreferrer noopener\">Live Demo<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background has-vivid-red-background-color\" href=\"https:\/\/bit.ly\/single-product-color-demo\" target=\"_blank\" rel=\"noreferrer noopener\">Unlock Premium Features<\/a><\/div>\n<\/div>\n\n\n\n<h2>Tutorial<\/h2>\n<ol>\n \t<li style=\"text-align: left;\"><a href=\"#global-label\">How To Create To Label\/Button Variation Swatches For Global Attributes<\/a><\/li>\n \t<li style=\"text-align: left;\"><a href=\"#manual-label\">How To Create To Label\/Button Variation Swatches For Manual Attributes<\/a><\/li>\n \t<li style=\"text-align: left;\"><a href=\"#scratch-label\">How To Create To Label\/Button Variation Swatches From Scratch<\/a><\/li>\n<\/ol>\n\n<hr>\n\n<span id=\"global-label\" style=\"color: #fff;\">.<\/span>\n<h3>How To Create Label\/Button Variation Swatches For Globally Created Attributes<\/h3>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ECDk9sKqT7w?rel=0\" width=\"1080\" height=\"420\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\n<p style=\"text-align: center;\"><strong>Video Tutorial<\/strong><\/p>\n\n\n<hr>\n<p>\nHead to the <strong>Products &gt;&gt; Attributes<\/strong>. All existing global attributes are listed in the attribute list page section. After installing <strong>WooCommerce Variation Swatches plugin<\/strong>, it adds <strong>Type<\/strong> field. By default it would show <strong>Select<\/strong> under Type title.\n<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5668\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-02.png\" alt=\"\" width=\"1004\" height=\"103\"><\/a>\n\n\n<p>As <strong>WooCommerce Variation Swatches<\/strong> Plugin comes with 4 attribute types: Color, Image, Button and Radio. You can set any of attribute type for your desired attribute.<\/p>\n\n<p>For demonstration purpose, <strong>Size<\/strong> attribute has been created. We&#8217;ll add <strong>button<\/strong> attribute type for Size attribute.<\/p>\n\n<p>To set <strong>button<\/strong> attribute type to Image attribute, click on <strong>Edit<\/strong>.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5671\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-04.png\" alt=\"\" width=\"1003\" height=\"102\"><\/a>\n\n<p>After selecting edit link, it will open attribute editing panel. Select <strong>Button<\/strong>&nbsp;Type from the type dropdown.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-swatches-04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5664\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-swatches-04.png\" alt=\"\" width=\"1000\" height=\"618\"><\/a>\n\n<p>When attribute type selection is completed, get back to the attribute list page. The Attribute list would look like the following image. Now <strong>Size Attribute<\/strong> is showing <strong>Button type<\/strong> instead of default <strong>Select<\/strong> type.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5670\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-03.png\" alt=\"\" width=\"1001\" height=\"100\"><\/a>\n\n&nbsp;\n\n<p>After selecting attribute type, the frontend of the product would look like the following screenshot. Don&#8217;t be panic, if you find your attribute variations weird. It happens because you haven&#8217;t set any image for variations yet.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-swatches-06.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5667 aligncenter\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-swatches-06.png\" alt=\"\" width=\"1000\" height=\"567\"><\/a>\n\n<hr>\n\n<span id=\"manual-label\" style=\"color: #ffffff;\">.<\/span>\n<h3>How To Create Label\/Button Variation Swatches From Manually Created Attributes<\/h3>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/TFtGjE5aEms?rel=0\" width=\"1080\" height=\"420\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\n<p style=\"text-align: center;\"><strong>Video Tutorial<\/strong><\/p>\n\n\n<hr>\n\n<h4>Step O1: Pro Plugin Setup<\/h4>\n<p>If you have variable products in your store and don&#8217;t have product attributes created globally, it means you have created attribute and it&#8217;s variations manually. To convert manually created attribute variations into image swatches, make sure you have <strong>premium version of WooCommerce Variation Swatches<\/strong> created.<\/p>\n\n[button style=&#8221;rounded-btn&#8221; text=&#8221;Live Demo&#8221; button_link=&#8221;http:\/\/bit.ly\/label-demo-from-doc&#8221; link_target=&#8221;_blank&#8221; type=&#8221;medium-btn&#8221; bg_color=&#8221;#333333&#8243; text_color=&#8221;#FFFFFF&#8221;] [button style=&#8221;rounded-btn&#8221; text=&#8221;Upgrade to Premium Version&#8221; button_link=&#8221;http:\/\/bit.ly\/label-manual-doc-pro&#8221; link_target=&#8221;_blank&#8221; type=&#8221;medium-btn&#8221; bg_color=&#8221;#56bfd4&#8243; text_color=&#8221;#FFFFFF&#8221;]\n<h4>Step O2: Change Manual Attribute Type<\/h4>\n<p>If you head to your <strong>Attributes tab<\/strong>&nbsp; from <strong>product data&nbsp;<\/strong>inside your product edit mode,&nbsp;and found variations are separated by pipe sign like the following screen. It means you have created&nbsp; variation manually.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5672\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-05.png\" alt=\"\" width=\"1007\" height=\"309\"><\/a>\n\n<p>To Convert these manually created attribute variations, head to <strong>Swatches Settings<\/strong> tab, and select <strong>Button<\/strong>&nbsp;type from <strong>Select (Default)<\/strong> Dropdown.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5673\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-06.png\" alt=\"\" width=\"1005\" height=\"303\"><\/a>\n\n<p>After selecting attribute type, the frontend of the product would look like the following screenshot.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-swatches-06.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5667 aligncenter\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-swatches-06.png\" alt=\"\" width=\"1000\" height=\"567\"><\/a>\n\n<hr>\n\n<span id=\"scratch-label\" style=\"color: #fff;\">.<\/span>\n<h3>How To Create Label Variation Swatches From Scratch<\/h3>\n<iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/-27C_UuOHGU?rel=0\" width=\"1080\" height=\"420\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\n<p style=\"text-align: center;\"><strong>Video Tutorial<\/strong><\/p>\n\n<h4>Step 01: Create Attribute<\/h4>\n<p>At first, we have to create <strong>label \/ button<\/strong> attribute and its variations globally. To create label attribute globally, navigate to <strong>Products &gt;&gt; Attributes<\/strong>. As we\u2019ll create label attribute for our product. Fill the name field with your desired attribute name. In this tutorial, I\u2019ve termed attribute name: <strong>Size<\/strong>.<\/p>\n\n<p>You can leave Slug field empty. It automatically generates the slug for the attribute. From the <strong>Type<\/strong> dropdown select <strong>button<\/strong> attribute type. When the mandatory fields are filled, select <strong>Add Attribute<\/strong> button.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/size-label.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-593\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/size-label-1024x964.png\" alt=\"\" width=\"1024\" height=\"964\"><\/a>\n\n<p>After creating attribute, you will notice a list is created in the right side. Check the following screenshot.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/image-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-595\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/image-button-1024x109.png\" alt=\"\" width=\"1024\" height=\"109\"><\/a>\n<h4>Step 02: Create Attribute Variations<\/h4>\n<p>The more variation you would add, they would get added to this list. When an attribute is created, we need to create attribute variations. To create product variations, click on the <strong>Configure terms<\/strong> from the attribute list.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/image-button-01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-597\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/image-button-01-1024x109.png\" alt=\"\" width=\"1024\" height=\"109\"><\/a>\n\n<p>As we have created a <strong>label<\/strong> attribute. We\u2019ll add label title as variations inside the <strong>button<\/strong> attribute. In this tutorial, we\u2019ll add <strong>Small<\/strong>, <strong>Medium<\/strong>, and <strong>Large<\/strong> Variations. To create variations inside label attribute. Fill the <strong>Name<\/strong> field with your desired variation name, leave the <strong>slug<\/strong> field empty and save the setting each time.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/list-attr.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-599\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/list-attr-1024x313.png\" alt=\"\" width=\"1024\" height=\"313\"><\/a>\n<h4>Step 03: Enable Attribute Variation in Variable Product<\/h4>\n<p>It\u2019s time to enable button \/ label swatches inside a variable product. To enable label swatches in your desired product. Get into your desired product edit mode. Make sure you have <strong>variable product<\/strong> selected from <strong>Product Data<\/strong>.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/product-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-598\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/product-data-1024x384.png\" alt=\"\" width=\"1024\" height=\"384\"><\/a>\n\n<p>After selecting the <strong>Variable product<\/strong> from <strong>Product data<\/strong> dropdown, head to the <strong>Attributes<\/strong> Tab. Click on <strong>Custom product attribute<\/strong> dropdown. In this dropdown, you can see all your globally created attributes. As we\u2019ve only created a <strong>Size<\/strong> attribute, it\u2019s now showing <strong>Size<\/strong> attribute.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/size.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-600\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/size-1024x462.png\" alt=\"\" width=\"1024\" height=\"462\"><\/a>\n\n<p>Now select the <strong>Size<\/strong> attribute and click on <strong>Add<\/strong>. You can see the following screens appears afterward.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/size-attribute.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-601 aligncenter\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/size-attribute-1024x264.png\" alt=\"\" width=\"1024\" height=\"264\"><\/a>\n\n<p>If you want to select all available variations of the <strong>size<\/strong> attribute, click on <strong>Select all<\/strong> button. If you want to deselect all selected variations at once. Click on <strong>Select none<\/strong> button. Add all variations selecting <strong>Select All<\/strong> button, checked <strong>Used for variations<\/strong> settings and click on <strong>Save Attributes<\/strong> button. Check the following screenshot for guideline.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/variation-swatches.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-602\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/variation-swatches-1024x262.png\" alt=\"\" width=\"1024\" height=\"262\"><\/a>\n\n<p>Now get into <strong>Variations<\/strong> tab. Click on <strong>Add Variation<\/strong> dropdown. Here you will notice two options. First one is <strong>Add Variation<\/strong> and the second one is <strong>Create variations from all attributes<\/strong>.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/04\/vriation-o1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-368\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/04\/vriation-o1-1024x259.png\" alt=\"\" width=\"1024\" height=\"259\"><\/a>\n\n<p>In this tutorial, I am going to select <strong>Create variation from all attributes<\/strong> and click <strong>Go<\/strong> button. It\u2019ll add all available variations like the following.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/variation.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-604\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/variation-1024x662.png\" alt=\"\" width=\"1024\" height=\"662\"><\/a>\n\n<p>You can see the above image that <strong>Small<\/strong>, <strong>Medium<\/strong>, and <strong>Large<\/strong> image variations are there. From this screen you can add variation image, variation price, and other variation specific details. When you have done with adding all your required details in each variation, click the <strong>Save Changes<\/strong> button.<\/p>\n\n<p>Remember! Don\u2019t forget to add the price in each variation, otherwise, variations won\u2019t be visible on the product frontend.<\/p>\n\n<p>If you can successfully add variation. You can see the following swatches in your product frontend.<\/p>\n\n<a href=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5674\" src=\"https:\/\/getwooplugins.com\/wp-content\/uploads\/2018\/05\/label-07.png\" alt=\"\" width=\"1000\" height=\"525\"><\/a>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial How To Create To Label\/Button Variation Swatches For Global Attributes How To Create To Label\/Button Variation Swatches For Manual Attributes How To Create To Label\/Button Variation Swatches From Scratch . How To Create Label\/Button Variation Swatches For Globally Created Attributes Video Tutorial Head to the Products &gt;&gt; Attributes. All existing global attributes are listed &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/label-button-variation-swatches\/\"> <span class=\"screen-reader-text\">Button Variation Swatches<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"_links":{"self":[{"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/pages\/311"}],"collection":[{"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":16,"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/pages\/311\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/pages\/311\/revisions\/496"}],"wp:attachment":[{"href":"https:\/\/demo.getwooplugins.com\/woocommerce-variation-swatches\/product-details\/wp-json\/wp\/v2\/media?parent=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}