In backend, go to STORES → [Attributes] Product . Click Add New Attribute button.

How to Create (Yes/ No) Attribute Product?

Complete the Basic Properties

How to Create (Yes/ No) Attribute Product?, image 2

The Basic Properties is required for a product attribute.

  • Insert the Default Label to describe the attribute.
  • In the Catalog Input Type for Store Owner  choose Yes/No of the input from a list.
  • Choose Yes for the Value Required to ask customers to select the options before purchasing.

     Complete the Advanced Properties (Optional)

How to Create (Yes/ No) Attribute Product?, image 3

  • Insert the Attribute Code that is less than 30 characters and excluded spaces.
  • The Scope includes Store View, Website, and Global.You will choose one of three places in your store system where the appearance of attribute is approved.
  • Apply the Unique Value if you not want to share it with other products.

     Insert the Field Label

How to Create (Yes/ No) Attribute Product?, image 4

  • Open the Manage Title section.
  • Insert the Title that is shown for the field label. In case of multiple languages supported on your store, insert the translation of the title for each view.

Complete the Storefront Properties

How to Create (Yes/ No) Attribute Product?, image 5

  • Choose Yes for the Use in Search to be ready for searching the attribute.
  • Allow comparing the product attributes in Product Compare if you choose Yes in the Comparable on Storefront field.
  • Choose Yes in the Use for Promo Rule Conditions field to apply the product attribute for the price rules.
  • To make the attribute visible in catalog page listing, choose Yes in the Visible on Catalog Pages on Storefront field.
  • If Product Listing is supported at your store, the attribute can be appeared and used as sort parameter. Configuring that from the UUsed in Product Listing and Used for Sorting in Product Listing field.
  • Save Attribute to finish all.

Reindex Data

  • Login to your server with your SSH account
  • Switch to apache user
  • Change to magento root directory
  • Run command line: php bin/magento indexer:reindex
  • Run command line: php bin/magento cache:clean (if your site enable cache).

Frequently asked questions

What is a Yes/No attribute used for in Magento 2?

A Yes/No attribute lets a store show a simple toggle on a product, such as whether an item is handmade, limited edition, or gift-wrapped, without needing a full dropdown of options. It works well for the Mag2Antique theme's antique listings where a feature either applies to a product or it does not.

Why does the new attribute need a reindex after saving?

Magento stores catalog data in indexed tables for faster page loads, so a newly created attribute will not show correctly on the storefront until those indexes are rebuilt. Running the reindex command over SSH after saving the attribute makes sure shoppers see the updated Yes/No field right away.

Where are the other Mag2Antique - Magento 2 Theme for Antique Store Marketplace user guides?

Every Mag2Antique - Magento 2 Theme for Antique Store Marketplace user guide is listed on the Mag2Antique - Magento 2 Theme for Antique Store Marketplace user guides page, grouped by topic. Customers with a licence can open a support ticket from the Cmsmart dashboard when a step does not match their install.

What if a step in this Mag2Antique - Magento 2 Theme for Antique Store Marketplace user guide does not match my store?

This user guide describes the release that was current when it was written (it was published on 24 January 2019), so a menu or setting may have moved since. Customers with a licence open a support ticket from the Cmsmart dashboard, naming the step and adding a screenshot, and the team answers there.

How do I pay securely?

Contracts and payments go to the company, Netbase JSC: plans are paid through PayPal; services are invoiced by Netbase JSC under a written proposal and paid by bank transfer to Netbase JSC's company account or by PayPal Business. Cmsmart (Cmsmart Ecommerce) is the ecommerce brand of Netbase JSC, a company based in Hanoi, Vietnam.

How do I contact Cmsmart or get a quote?

Message the Cmsmart team on WhatsApp at +84 937 869 689 or email project@cmsmart.net; the contact page at cmsmart.net/contact lists every channel, and Request a quote (cmsmart.net/project-proposal) sends a project brief. Customers with a licence open a ticket from the dashboard.

Further reading

More user guides