Announcement

Collapse
No announcement yet.

Iron & Wool Add Radio Attribute Item to Wish Broken

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

    Iron & Wool Add Radio Attribute Item to Wish Broken

    If you try to add an item to a Wish List with Radio Button attributes with no options selected the error page for WISH is not working correctly.

    Attributes in <span class="bold">bold</span> are required.

    Example is here:
    http://dev.665leather.com/pima-cotto...t-t-shirt.html

    Test.JPG

    Iron & Wool Version 1.1.0
    Last edited by Viscott; 08-24-15, 01:38 PM.
    Jon

    Viscott Limited
    www.viscott.com

    #2
    Re: Iron &amp; Wool Add Radio Attribute Item to Wish Broken

    Hi Jon,

    Are you referring to the display of the error message? If so, edit the Product Display Layout of the PATR page like this:

    Find:
    Code:
    <mvt:if expr="l.settings:messages:error_message_count">
        <div class="column whole">
            <div class="message message-warning">
                <mvt:foreach iterator="error" array="messages:error_messages">
                    &mvte:error;<br />
                </mvt:foreach>
            </div>
        </div>
    </mvt:if>
    Change "&mvte:error;" to "&mvt:error;".

    If you are seeing a different issue, please elaborate. The store at the link you provided is in maintenance mode, so I cannot see the page you are referring to.
    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


      #3
      Re: Iron &amp; Wool Add Radio Attribute Item to Wish Broken

      That takes care of the bad html. The message now appears correctly however once the error message is displayed, the add to wish list disappears.

      Store out of maint mode.
      http://dev.665leather.com/pima-cotto...t-t-shirt.html
      Jon

      Viscott Limited
      www.viscott.com

      Comment


        #4
        Re: Iron &amp; Wool Add Radio Attribute Item to Wish Broken

        Hi Jon,

        The form will actually process the add to wish list request if you click the add to cart button. To have a better user experience, replace the existing add to cart button code with the following.
        Code:
        <mvt:if expr="g.Action EQ 'ATWL'">
            <input type="submit" value="Add to Wish List" id="js-add-to-cart" class="button button-square button-medium button-block medium-button-medium uppercase add-to-cart" />
        <mvt:else>
            <input type="submit" value="Add to Cart" id="js-add-to-cart" class="button button-square button-medium button-block medium-button-medium uppercase add-to-cart" />
        </mvt:if>
        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


          #5
          Re: Iron &amp; Wool Add Radio Attribute Item to Wish Broken

          After adding the item with the code replacement, I get taken to the basket.

          The item has been added to the wish list however.

          I replaced the add to cart button on PROD and PATR.
          Jon

          Viscott Limited
          www.viscott.com

          Comment

          Working...
          X