Announcement

Collapse
No announcement yet.

Broken Cart Summary on OSEL and OPAY Page fix

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

    Broken Cart Summary on OSEL and OPAY Page fix

    I'm trying t track down what is breaking the rest of a layout on the OSEL page. Since the site is behind a password protected directory, I can't share the link. On an off chance, I went and looked at the Miva demo for the ReadyTheme. To see the issue, go to https://suivant-theme.mivamerchantdev.com, add something to the cart and checkout. Notice the Global Footer when you get to the OSEL screen (checkout-special-offers.html).

    When I inspect the code, I see it adding a bunch of

    Code:
    <small>
        <small>
        </smal>
    </small>
    When I view source, it looks like an extra </div> tag might be being added:

    Code:
     <div class="column one-fourth align-right nrp nlp"> $129.90<br /> <small><s>$158.95</s><small><br /> &nbsp;<br /> &nbsp;<br /> </div> </div>

    Then the issue seems to multiple in the address section and disrupts everything after that:

    Code:
     <div class="basket-product-row"> <p class="column whole h6">Ship To:</p> <address class="column whole"> <strong>Test Order</strong><br /> 1234 Your Way&nbsp; Our Town, AL 35124 US<br /> <small>Residential Address</small><br /> Email: [email protected]<br /> Phone: 8888888888<br /> </address> </div> <div class="basket-product-row"> <p class="column whole h6">Bill To:</p> <address class="column whole"> <strong>Test Order</strong><br /> 1234 Your Way&nbsp; Our Town, AL 35124 US<br /> Email: [email protected]<br /> Phone: 8888888888<br /> </address> </div> </div> </div> </div> <div class="row hdft-footer"> </div> </div> </div> <!-- end column-right --> <!-- end column-left --> </div> <!-- end main --> <div class="bottom-wrap"></div> <!-- end bottom-wrap --> </div> <!-- end wrap --> </main> <!-- end main --> </div> <!-- end site-wrapper -->

    After digging through the code in the OSEL Basket Content section, I discovered a second <small> tag instead of a closing </small> tag around line 43


    Code:
    <mvt:if expr="l.settings:group:subtotal_base_price NE l.settings:group:subtotal">
                    &mvt:group:formatted_subtotal;<br />
                    <small><s>&mvt:group:formatted_subtotal_base_price;</s><small><br />
                <mvt:else>
                    &mvt:group:formatted_subtotal;<br />
                    <small>&nbsp;</small><br />
                </mvt:if>
    The same problem exists in the OPAL Basket Content section.

    Change the second <small> to </small> to fix the problem.
    Last edited by lesliekirk; 04-23-18, 06:32 AM. Reason: Added the fix to the fix post - LOL
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Hi Leslie,

    The second <small> tag should actually be </small> so it closes out the opening one.
    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
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      The second <small> tag should actually be </small> so it closes out the opening one.
      That's what I was trying to point out. I must have hit Post Reply before I finished my post...
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment

      Working...
      X