Announcement

Collapse
No announcement yet.

Option Subtotal not displaying in BASK

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

    Option Subtotal not displaying in BASK

    Forum doesn't like me tonight, this will be the third time I have tried to post this.

    The Option Price display fine

    Code:
    <mvt:foreach iterator="option" array="group:options">					<mvt:if expr="l.settings:option:base_price">
    						<p><small>&mvt:option:formatted_base_price;</small></p>
    					</mvt:if>
    				</mvt:foreach>
    The Price Subtotal displays fine

    Code:
    <mvt:if expr="l.settings:group:subtotal_base_price NE l.settings:group:subtotal">					<s>&mvt:group:formatted_subtotal_base_price;</s><br />
    				</mvt:if>
    				<p>&mvt:group:formatted_subtotal;</p>
    				<mvt:if expr="l.settings:option:subtotal_base_price OR l.settings:option:subtotal">
    					<mvt:if expr="l.settings:option:subtotal_base_price NE l.settings:option:subtotal">
    						<s><small>&mvt:option:formatted_subtotal_base_price;<small></s><br />
    					</mvt:if>
    					<p><small>&mvt:option:formatted_subtotal;</small></p>
    				</mvt:if>

    but the Option Subtotal doesn't display. Also it needs to display the subtotal for each option, not a grand subtotal for the Options. Could the lack of a foreach around the Option Subtotal be part of the problem?

    This code is from the Iron & Wool BASK screen Basket Contents
    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
    Re: Option Subtotal not displaying in BASK

    Hi Leslie,

    It looks like that FOREACH is missing for some reason. Thank you for catching it. The code for that final pricing column should look like this:
    Code:
    <div class="column half medium-one-eighth medium-align-right">
        <p class="medium-all-hidden"><strong>Item Subtotal</strong></p>
        <mvt:if expr="l.settings:group:subtotal_base_price NE l.settings:group:subtotal">
            <s>&mvt:group:formatted_subtotal_base_price;</s><br />
        </mvt:if>
        <p>&mvt:group:formatted_subtotal;</p>
        <br />
        <mvt:foreach iterator="option" array="group:options">
            <mvt:if expr="l.settings:option:subtotal_base_price OR l.settings:option:subtotal">
                <mvt:if expr="l.settings:option:subtotal_base_price NE l.settings:option:subtotal">
                    <s><small>&mvt:option:formatted_subtotal_base_price;</small></s><br />
                </mvt:if>
                <p><small>&mvt:option:formatted_subtotal;</small></p>
            </mvt:if>
        </mvt:foreach>
    </div>
    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: Option Subtotal not displaying in BASK

      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      It looks like that FOREACH is missing for some reason. Thank you for catching it. The code for that final pricing column should look like this:
      Thanks Matt - it's what I do
      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