Announcement

Collapse
No announcement yet.

Product Attributes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Since you aren't using an actual label, the "required" class is not being added to the layout. If you adjust the product attribute layout to make the SELECT element have the class "required" if set to be required and add a title to the SELECT element with a value of the attribute prompt, you will get the results you are after.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #17
      That worked - thanks. Here is the code in case anyone needs it:
      Code:
      <mvt:if expr="l.settings:attribute:required">
                      <select name="Product_Attributes[&mvt:attribute:index;]:value" id="&mvt:attributeID;" title="&mvt:attribute:prompt" class="input-medium required" data-attribute="&mvte:attribute:code;">
      <mvt:else>
      <select name="Product_Attributes[&mvt:attribute:index;]:value" id="&mvt:attributeID;" class="input-medium" data-attribute="&mvte:attribute:code;">
      </mvt:if>

      Comment

      Working...
      X