Announcement

Collapse
No announcement yet.

Duplicating Mini-Basket Code to the Checkout: Basket Summary

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

    Duplicating Mini-Basket Code to the Checkout: Basket Summary

    I'm trying to get the Checkout: Basket Summary ReadyTheme Content Section to display just like the Mini-Basket does when it comes to the Product Attribute Price. The Mini-Basket has a token that I can't quite figure out how to make work in the Checkout: Basket Summary




    Code:
    &mvt:item:formatted_subtotal_comprehensive;
    It is used within this conditional

    Code:
    <mvt:if expr="l.settings:item:subtotal_base_price OR l.settings:item:subtotal">
                                    <mvt:if expr="l.settings:item:subtotal_base_price NE l.settings:item:subtotal">
                                        <s>&mvt:item:formatted_subtotal_base_price;</s><br />
                                    </mvt:if>
                                    <strong>&mvt:item:formatted_subtotal;</strong>
                                <mvt:else>
                                    <strong>[&mvt:item:formatted_subtotal_comprehensive;</strong>
                                </mvt:if>

    I thought maybe this would work but it is pulling in the price of one of the items and displaying it for every item in the basket


    Code:
    <mvt:if expr="l.settings:group:subtotal_base_price OR l.settings:group:subtotal">
    
                                    <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>
                                    &mvt:group:formatted_subtotal;
    
                                   <mvt:else>
                                    <strong>&mvt:item:formatted_subtotal_comprehensive;</strong>
                                </mvt:if>


    The Mini-Basket also shows the attribute price next to the attribute item listed. I tried to get that to work too, but it didn't for me...
    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,

    I'm having a little trouble following what you are looking for. Could you post screens of what you are currently displaying and a mock-up of what you are looking for?
    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
      It is difficult to provide a screenshot of the entire mini-basket display due to the display size of it. This is one product that is part of the Build Your Own Basket:



      This is another product in the cart that is part of the Build Your Own Basket



      What I'm trying to achieve in the Order Summary is to display the attribute item price (which the mini-basket seems to be able to do rather nicely)

      This is a screenshot of what the Order Summary (at checkout) looks like. I had to comment out the &mvt:group:formatted_subtotal; because it was displaying $0.00 for price of each Custom Basket (yes the product price is 0.00)




      You can also go here http://www.dutchbaskets.com/product/custom-basket.html to build a basket, then look at the "My Cart" display. Then go to checkout and view the Order Summary display. I want the Order Summary display to look like the "My Cart" (mini-basket) display.

      The "mockup" would be to get the Order Summary to look just like the "My Cart" display.

      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


        #4
        Hi Leslie,

        You should be able to use &mvt:group:formatted_subtotal_comprehensive; to display the product price when the actual product has a price of zero and the attribute controls what the product price is.
        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
          Originally posted by Matt Zimmermann View Post
          Hi Leslie,

          You should be able to use &mvt:group:formatted_subtotal_comprehensive; to display the product price when the actual product has a price of zero and the attribute controls what the product price is.
          Yes, I thought I "should" be able to also but it didn't work. Now granted I may have used it incorrectly. I tried adapting what I found used in the "My Cart" display


          Code:
          <mvt:if expr="l.settings:item:subtotal_base_price OR l.settings:item:subtotal">
                                          <mvt:if expr="l.settings:item:subtotal_base_price NE l.settings:item:subtotal">
                                              <s>&mvt:item:formatted_subtotal_base_price;</s><br />
                                          </mvt:if>
                                          <strong>&mvt:item:formatted_subtotal;</strong>
                                      <mvt:else>
                                          <strong>&mvt:item:formatted_subtotal_comprehensive;</strong>
                                      </mvt:if>

          Where I changed "item" to "group". Is there a better way to do this?
          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


            #6
            Hi Leslie,

            I would recommend using this:
            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>
            <strong>&mvt:group:formatted_subtotal_comprehensive;</strong>
            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


              #7
              Thanks! That got it. One more little thing cleaned up on this one.
              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