---
title: How to Add Select One To Your Drop-Down Menus With Attribute Machine
description: This tutorial will show you how to add “Select One” to each of your drop down lists and still use Attribute Machine to track inventory down to the attribute level.
image: https://blog.miva.com/hubfs/Blog%20-%20Default%20Featured%20Images/General-Featured-Image-Man-Smiling-Tablet-Office-Working-Photo-Blog-2520x1592.jpg
---

- [![Miva, Inc logo.](https://www.miva.com/images/logos/miva-type-white.svg)](https://www.miva.com)
- ![White X close button](https://www.miva.com/images/svg/icons/icon-x-white.svg)

- Why Choose Miva
  
    - Solutions
    - [Why Miva Simplify Complexity](https://www.miva.com/why-miva)
    - [Platform Overview A Complete Ecommerce Solution](https://www.miva.com/platform-overview)
    - [Miva Connect Real-time Native Connections](https://www.miva.com/miva-connect)
    - [Vexture AI-powered Product Discovery](https://www.miva.com/vexture)
    - [PageBuilder No-code Page Creation](https://www.miva.com/pagebuilder)
    - [MivaPay Flexible Native Payment Solution](https://www.miva.com/mivapay)
    - Business Type
    - [B2B Robust Business Tools Built-In](https://www.miva.com/b2b-ecommerce)
    - [B2C Designed for Agility](https://www.miva.com/b2c-ecommerce-platform)
    - [Hybrid B2B + B2C, All Managed Together](https://www.miva.com/b2b-dtc-ecommerce-platform)
- [Enterprise](https://www.miva.com/enterprise-ecommerce-platform)
- Resources
  
    - Community
    - [Customer Stories Case Studies and Featured Stores Built With Miva](https://www.miva.com/customer-stories)
    - [Technology Partners An Ecosystem Built for Flexibility](https://www.miva.com/partners)
    - [Agency Partners Helping You Build and Grow](https://www.miva.com/miva-agency-partners)
    - Resources
    - [Resource Center Browse Our Extensive Library](https://www.miva.com/ecommerce-strategy-resource-guides)
    - [Blog Explore Miva Insights on Ecommerce](https://blog.miva.com/)
    - [Documentation Answers for All Your Miva Questions](https://docs.miva.com/)
- [Get Pricing](https://www.miva.com/schedule-demo-admin)

[![Miva, Inc logo.](https://www.miva.com/images/logos/miva-type-white.svg)](https://www.miva.com)

- Why Choose Miva
  
    - Solutions
    - [Why Miva Simplify Complexity](https://www.miva.com/why-miva)
    - [Platform Overview A Complete Ecommerce Solution](https://www.miva.com/platform-overview)
    - [Miva Connect Real-time Native Connections](https://www.miva.com/miva-connect)
    - [Vexture AI-powered Product Discovery](https://www.miva.com/vexture)
    - [PageBuilder No-code Page Creation](https://www.miva.com/pagebuilder)
    - [MivaPay Flexible Native Payment Solution](https://www.miva.com/mivapay)
    - Business Type
    - [B2B Robust Business Tools Built-In](https://www.miva.com/b2b-ecommerce)
    - [B2C Designed for Agility](https://www.miva.com/b2c-ecommerce-platform)
    - [Hybrid B2B + B2C, All Managed Together](https://www.miva.com/b2b-dtc-ecommerce-platform)
  [![](https://www.miva.com/images/webp/apex-stat.webp)](https://www.miva.com/case-studies/apex-tools)
  
  Your Partner for Growth
  
  See how Apex Tool drove a 57% revenue lift with Miva's Vexture® solution.
- [Enterprise](https://www.miva.com/enterprise-ecommerce-platform)
- Resources
  
    - Community
    - [Customer Stories Case Studies and Featured Stores Built With Miva](https://www.miva.com/customer-stories)
    - [Technology Partners An Ecosystem Built for Flexibility](https://www.miva.com/partners)
    - [Agency Partners Helping You Build and Grow](https://www.miva.com/miva-agency-partners)
    - Resources
    - [Resource Center Browse Our Extensive Library](https://www.miva.com/ecommerce-strategy-resource-guides)
    - [Blog Explore Miva Insights on Ecommerce](https://blog.miva.com/)
    - [Documentation Answers for All Your Miva Questions](https://docs.miva.com/)

- [Get Pricing](https://www.miva.com/schedule-demo-admin)
- ![White, three-lined, menu icon.](https://www.miva.com/images/svg/icons/icon-menu.svg)

# How to Add Select One To Your Drop-Down Menus With Attribute Machine

By Miva | October 14, 2011

- [Miva News](https://blog.miva.com/tag/miva-news)

![Man smiling and looking at a tablet](https://blog.miva.com/hubfs/Blog%20-%20Default%20Featured%20Images/General-Featured-Image-Man-Smiling-Tablet-Office-Working-Photo-Blog-2520x1592.jpg)

### Before You Read On...

See why top ecommerce brands use Miva’s no-code platform to run   
multiple stores, manage massive catalogs, and grow their revenue.

[Book a Demo of Miva](https://www.miva.com/schedule-demo-admin)

PR8 has a lot of unique features and functionalities that storeowners and developers can use to customize their Miva Merchant ecommerce stores. This tutorial will show you how to add “Select One” to each of your drop down lists and still use Attribute Machine to track inventory down to the attribute level.

1. Enable “Select One” Inside Of Attribute Machine

Since Attribute Machine dynamically rewrites all the attributes on the page, depending on what the customer selects, it first needs to know if your attributes are going to contain “Select One” as their first option. This will enable Attribute Machine to work as expected and the “Select One” option to still appear in the list.

Go to *Pages* then click edit for the *PROD* page. Next click on the *Attribute Machine* tab on the right hand side.

Here you want to change the Initial Attribute State to be “Preload – Drop-Down Lists Contain Select One”

## 2. Add “Select One” To Your Product Attribute Template

You will need to manually modify your attribute template on the *PROD* page to include the select one as the first option for all attributes.

On the same *PROD* page click over to the *Product Attribute Template* tab.  Scroll down about ¾ of the page look for this code:

```
 
<mvt:elseif expr="( l.settings:attribute:type EQ 'select' ) OR ( l.settings:attribute:type EQ 'swatch-select' )">
    <select name="Product_Attributes[&mvt:attribute:index;]:value">
        <mvt:foreach iterator="option" array="attribute:options">
        <mvt:if expr="( ( g.Product_Attributes[l.settings:attribute:index]:value EQ 0 ) AND ( l.settings:option:id EQ l.settings:attribute:default_id ) ) OR g.Product_Attributes[l.settings:attribute:index]:value EQ l.settings:option:code )">
    <option value="&mvte:option:code;" selected>&mvte:option:prompt;</option>
<mvt:else>
    <option value="&mvte:option:code;">&mvte:option:prompt;</option>
</mvt:if>
</mvt:foreach>
</select>
```

Add the “Select One Option” right below the opening “Select Tag” and hit update:

```
<select name="Product_Attributes[&mvt:attribute:index;]:value">
<option value="">Select One</option>  
```

Any product with drop-downs will now default to *Select One* and disable the *Add To Cart Button* so the customer cannot add the product to the cart until they select a valid combination of attributes.

[![The Future Economy Whitepaper](https://no-cache.hubspot.com/cta/default/5193374/f98899b4-bf18-4f1b-ac70-63567370f005.png)](https://cta-redirect.hubspot.com/cta/redirect/5193374/f98899b4-bf18-4f1b-ac70-63567370f005)

Love it? Share it!

-  
-  
-  
-  

[Back to top](https://blog.miva.com/quick-tip-how-to-add-select-one-to-your-drop-down-menus-with-attribute-mach#postAnchor)

### Want to read this blog offline?

No worries, download the PDF version now and enjoy your reading later...

Download PDF

![Image of Miva.](https://blog.miva.com/hubfs/Miva%2010/Miva%2010%20Email%20images/miva-logo-square.png) Miva

Miva offers a flexible and adaptable ecommerce platform that evolves with businesses and allows them to drive sales, maximize average order value, cut overhead costs, and increase revenue. Miva has been helping businesses realize their ecommerce potential for over 20 years and empowering retail, wholesale, and direct-to-consumer sellers across all industries to transform their business through ecommerce.

[Visit Website](https://www.miva.com/)

![White Miva, Inc logo.](https://www.miva.com/images/logos/miva-type-white.svg)

Powering the Next Era of Intelligent, Connected Commerce.

[Get Pricing](https://www.miva.com/schedule-demo-admin)

- [![White Facebook logo.](https://www.miva.com/images/svg/icons/icon-white-facebook.svg)](https://www.miva.com/social/facebook)
- [![White X logo.](https://www.miva.com/images/svg/icons/icon-white-x.svg)](https://www.miva.com/social/x)
- [![White LinkedIn logo.](https://www.miva.com/images/svg/icons/icon-white-linkedin.svg)](https://www.miva.com/social/linkedin)
- [![White Instagram logo.](https://www.miva.com/images/svg/icons/icon-white-instagram.svg)](https://www.miva.com/social/instagram)

![Badge displaying that Miva was named Best Ecommerce Platform in 2020 by Vendors In Partnership.](https://www.miva.com/images/badges/best-ecomm-platform-2020.webp)

- Solutions
- [Why Miva](https://www.miva.com/why-miva)
- [Platform Overview](https://www.miva.com/platform-overview)
- [Miva Connect](https://www.miva.com/miva-connect)
- [Vexture](https://www.miva.com/vexture)
- [PageBuilder](https://www.miva.com/pagebuilder)
- [MivaPay](https://www.miva.com/mivapay)
- [MultiStorefront](https://www.miva.com/miva-multistorefront)

- Business Type
- [B2B](https://www.miva.com/b2b-ecommerce)
- [B2C](https://www.miva.com/b2c-ecommerce-platform)
- [Hybrid](https://www.miva.com/b2b-dtc-ecommerce-platform)

- Community
- [Customer Stories](https://www.miva.com/customer-stories)
- [Technology Partners](https://www.miva.com/partners)
- [Agency Partners](https://www.miva.com/miva-agency-partners)
- [Forums](https://www.miva.com/forums/)

- Resources
- [Resource Center](https://www.miva.com/ecommerce-strategy-resource-guides)
- [Blog](https://blog.miva.com/)
- [Documentation](https://docs.miva.com/)
- [App Store](https://apps.miva.com/)
- [Miva Releases](https://www.miva.com/product-releases)

- Compare Miva
- [With Shopify](https://www.miva.com/miva-vs-shopify-plus)
- [With BigCommerce](https://www.miva.com/miva-vs-bigcommerce)
- [With Adobe Commerce (Magento)](https://www.miva.com/miva-vs-adobe-commerce-magento)
- [With Salesforce Commerce](https://www.miva.com/miva-vs-salesforce-commerce)

- Company
- [About](https://www.miva.com/company)
- [Leadership](https://www.miva.com/company/leadership)
- [Diversity & Inclusion](https://www.miva.com/company/diversity-inclusion)
- [Careers](https://www.miva.com/company/careers)
- [Press Center](https://www.miva.com/press/)

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay®, Camp Miva®, Miva Connect®, Vexture®, Miva, Inc. All Rights Reserved. Terms & Policies

- [Privacy Policy](https://www.miva.com/privacy)
- [Cookie Policy](https://www.miva.com/cookie-policy)
- [Job Applicants Privacy](https://www.miva.com/miva-applicant-privacy-notice)
- [Intellectual Property](https://www.miva.com/intellectualproperty)
- [Terms of Service](https://www.miva.com/pdf/SaaS_TOS.pdf)
- [Non-Compliance Policy](https://www.miva.com/miva-software-updates)

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://blog.miva.com/quick-tip-how-to-add-select-one-to-your-drop-down-menus-with-attribute-mach#webpage",
  "@type" : "WebPage",
  "description" : "This tutorial will show you how to add “Select One” to each of your drop down lists and still use Attribute Machine to track inventory down to the attribute level.",
  "inLanguage" : "en-US",
  "isPartOf" : {
    "@id" : "https://blog.miva.com/#website"
  },
  "name" : "How to Add Select One To Your Drop-Down Menus With Attribute Machine",
  "url" : "https://blog.miva.com/quick-tip-how-to-add-select-one-to-your-drop-down-menus-with-attribute-mach"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://www.miva.com/",
    "name" : "Home",
    "position" : 1
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.miva.com/",
    "name" : "Blog",
    "position" : 2
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.miva.com/quick-tip-how-to-add-select-one-to-your-drop-down-menus-with-attribute-mach",
    "name" : "How to Add Select One To Your Drop-Down Menus With Attribute Machine",
    "position" : 3
  } ]
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Miva",
    "url" : "https://blog.miva.com/author/miva"
  },
  "dateModified" : "1638218326318",
  "datePublished" : "2011-10-14 00:00:00",
  "description" : "This tutorial will show you how to add “Select One” to each of your drop down lists and still use Attribute Machine to track inventory down to the attribute level.",
  "headline" : "How to Add Select One To Your Drop-Down Menus With Attribute Machine",
  "image" : {
    "@type" : "ImageObject",
    "height" : 630,
    "url" : "https://go.miva.com/hubfs/Blog%20-%20Default%20Featured%20Images/General-Featured-Image-Man-Smiling-Tablet-Office-Working-Photo-Blog-2520x1592.jpg",
    "width" : 1200
  },
  "mainEntityOfPage" : {
    "@id" : "https://blog.miva.com/quick-tip-how-to-add-select-one-to-your-drop-down-menus-with-attribute-mach#webpage",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "https://www.miva.com/images/new-images/mivainc-logo.png",
      "width" : 300
    },
    "name" : "Miva",
    "url" : "https://www.miva.com/"
  },
  "url" : "https://blog.miva.com/quick-tip-how-to-add-select-one-to-your-drop-down-menus-with-attribute-mach"
}
```