Announcement

Collapse
No announcement yet.

Mini-basket product image

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

    Mini-basket product image

    I'm not sure what is different. I'm probably missing the obvious but I cannot get the mini-basket product thumbnail image to display. It will (for some odd reason) display when the mini-basket is displayed on the BASK Page.

    I've tried with the Product Images Main checked
    ​​​​​​
    Code:
    &mvte:item:imagetypes:main;
    I've also tried
    Code:
    &mvt:global_minibasket:items:imagetypes:main;
    Nothing seems to want to display 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
    Is the box checked for that image type under the Mini-Basket Template?

    Is that image type assigned to the product image?

    Is the iterator group or item?
    <mvt:foreach iterator="item" array="global_minibasket:groups">
    Nick Harkins
    www.loveisarose.com

    Comment


      #3
      Originally posted by SidFeyDesigns View Post
      Is the box checked for that image type under the Mini-Basket Template?
      Yes
      Originally posted by SidFeyDesigns View Post
      Is that image type assigned to the product image?
      Yes

      Originally posted by SidFeyDesigns View Post
      Is the iterator group or item?
      <mvt:foreach iterator="item" array="global_minibasket:groups">
      This one:
      Code:
      <mvt:foreach iterator="item" array="global_minibasket:groups">
      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
        Very odd.

        Is it perhaps hidden with css based on screen size?

        I know the stock Suivant theme would hide the image for screens smaller than 768px wide.
        Nick Harkins
        www.loveisarose.com

        Comment


          #5
          Does the image name come up in token list (not always accurate--and you have to use the same browser and load something in the basket).
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment


            #6
            I changed
            Code:
            <mvt:foreach iterator="item" array="global_minibasket:groups">
            to

            Code:
            <mvt:foreach iterator="item" array="global_minibasket:items">
            It now works. So what I have I broken by doing that?
            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


              #7
              That was probably the issue all along.

              Also I didn't realize this but this could be a bug with the recent Shadows 10.07.

              That is where I pulled this line from:
              Code:
              <mvt:foreach iterator="item" array="global_minibasket:groups">
              So I would check the variables/entities within the iterator.

              I thought there was only two options for that iterator (or the regular basket iterator):
              Code:
              <mvt:foreach iterator="item" array="global_minibasket:items">
              <mvt:comment> This will have variables and entities like the following <mvt:comment>
                  <mvt:if expr="NOT ISNULL l.settings:item:imagetypes:main">
                      <img src="&mvte:item:imagetypes:main;" width="75" height="75" alt="&mvte:item:name;" title="&mvte:item:name;" />
                  <mvt:else>
                      &nbsp;
                  </mvt:if>
              </mvt:foreach>
              OR:
              Code:
              <mvt:foreach iterator="group" array="global_minibasket:groups">
                 <mvt:comment> This will have variables and entities like the following <mvt:comment>
                  <mvt:if expr="NOT ISNULL l.settings:group:imagetypes:main">
                      <img src="&mvte:group:imagetypes:main;" width="75" height="75" alt="&mvte:group:name;" title="&mvte:group:name;" />
                  <mvt:else>
                      &nbsp;
                  </mvt:if>
              </mvt:foreach>
              More info on the difference between the two is here: https://www.miva.com/forums/forum/de...s-basket-items
              Nick Harkins
              www.loveisarose.com

              Comment


                #8
                Originally posted by SidFeyDesigns View Post
                That was probably the issue all along.

                Also I didn't realize this but this could be a bug with the recent Shadows 10.07.
                Since Colossus hasn't been updated in a "while" I'm not sure if it would apply but then maybe that's where the bug originated at?
                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


                  #9
                  Ah I didn't realize it was for Colossus (Even though it is indeed in the colossus thread SMH).

                  Either way I'll make a post in the Shadows thread asking about it.
                  Nick Harkins
                  www.loveisarose.com

                  Comment


                    #10
                    FYI: the 'Iterator' can be anything you want. its like an ' mvt:assign name="" '. you could have
                    <mvt:foreach iterator="my_pants_are_on_fire" array="global_minibasket:groups">

                    you just then need to eval/express variables as

                    l.settings:my_pants_are_on_fire:code and &mvt:my_pants_are_on_fire:code;
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment

                    Working...
                    X