Announcement

Collapse
No announcement yet.

Levels Readytheme Storefront Slider is Broken

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

    Levels Readytheme Storefront Slider is Broken

    Hi Folks,
    I upgraded our development site to version 10 the other day. It has broken our Storefront Slider. It only displays the first image now. The rest do not appear. I contacted support, and they suggested this:
    With the Miva 10 update, some users with slider images on their site have needed to update their template code. The 'Image_Load_ID" function was replaced by 'Image_Load_File, which has caused some broken sliders. It is most likely that this is the issue you are experiencing and your template code must be updated in order for your slider images to appear again.

    I did as I was directed. I found only one instance of Image_Load_ID and replaced it with Image_Load_File. This had no effect. The slider is still broken.

    Anyone have any ideas?

    Thanks


    #2
    When updating the function, you will need to update what it is looking for. In the old version, you would enter the image id:
    Code:
    <mvt:do file="g.Module_Library_DB" name="l.success" value="Image_Load_ID(image_id, image var)" />
    In the new version, you have to use the file path:
    Code:
    <mvt:do file="g.Module_Library_DB" name="l.success" value="Image_Load_File(image_filepath, image var)" />
    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
      Does the Image_Load_ID function no longer work?

      Scott
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        ids Correct, when ReadyTheme Images were converted to ManagedProperties in v10, the image_id field was removed.
        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
          Ouch. I wish I could remember which clients I've used this function. I suppose I'll find out eventually aye.

          Scott
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment


            #6
            so is theImage_Load_File(l.settings:packaging_imagetype: image_id, l.settings:packaging_imagedata)" />
            changed also to
            Image_Load_File(l.settings:packaging_imagetype:ima ge_filepath, l.settings:packaging_imagedata)" />

            this is from a custom template where I am getting the image that is assigned to the type packaging

            Code:
            <itemGraphic>
            
            <mvt:do file="g.Module_Library_DB" name="l.success" value="ImageType_Load_Code('packaging', l.settings:packaging_imagetype)"/>
            
            <mvt:do file="g.Module_Library_DB" name="l.success" value="ImageType_Load_Code('main', l.settings:main_imagetype)"/>
            
            <mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:record:id , l.settings:packaging_imagetype:id, l.settings:packaging_imagetype)" />
            
            <mvt:do name="l.psuccess" file="g.Module_Library_DB" value="Image_Load_File(l.settings:packaging_imagetype:image_id, l.settings:packaging_imagedata)" />
            
            <mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:record:id , l.settings:main_imagetype:id, l.settings:main_imagetype)" />
            
            <mvt:do name="l.msuccess" file="g.Module_Library_DB" value="Image_Load_File(l.settings:main_imagetype:i mage_id, l.settings:main_imagedata)" />
            
            
            <mvt:comment>prefer packaging image if it is noted else show main image</mvt:comment>
            
            <mvt:if expr="NOT ISNULL l.settings:packaging_imagedata:image">
            
                 <mvt:assign name="l.settings:record:image" value="'https://www.sextoydistributing.com/Merchant2/' $ l.settings:packaging_imagedata:image"/>&mvte:record:image;
            
            <mvt:else>
            
                 <mvt:assign name="l.settings:record:image" value="'https://www.sextoydistributing.com/Merchant2/' $ l.settings:main_imagedata:image"/>&mvte:record:image;
            
            </mvt:if>
            
            </itemGraphic>
            Last edited by kayakbabe; 11-13-20, 04:46 PM.

            Comment


              #7
              Originally posted by Matt Zimmermann View Post
              When updating the function, you will need to update what it is looking for. In the old version, you would enter the image id:
              Code:
              <mvt:do file="g.Module_Library_DB" name="l.success" value="Image_Load_ID(image_id, image var)" />
              In the new version, you have to use the file path:
              Code:
              <mvt:do file="g.Module_Library_DB" name="l.success" value="Image_Load_File(image_filepath, image var)" />
              Hi Matt,
              My current code looks like this:
              Code:
               <mvt:do file="g.Module_Library_DB" name="l.settings:readytheme:image_slider2" value="Image_Load_ID( l.settings:readytheme:loaded_slider:image_id, l.settings:readytheme:loaded_slider_source )" />
              What exactly should it look like?

              Thanks!

              Comment


                #8
                You're code would look something like this:
                Code:
                <mvt:do file="g.Module_Library_DB" name="l.settings:readytheme:image_slider2" value="Image_Load_File('graphics/00000001/FILE_NAME.jpg', l.settings:readytheme:loaded_slider_source )" />
                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


                  #9
                  Hi Matt,
                  It would appear that there is something else at play here. I swapped in your code, and I still only get the first image. If I inspect element, it appears to be trying to swap in the next images, but nothing appears. There are 9 images total.

                  I don't know where the documentation for the new sliders is, and it seems like you are giving me general suggestions and I am to fill in the blanks. If you can help me with this more specifically, that'd be great.

                  Thanks

                  Comment


                    #10
                    I would recommend contacting either support or professional services so they can take a look at the code to advise further.
                    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


                      #11
                      As I noted in my original post, I contacted support first. I was given inadequate information to resolve my issue. I came here hoping to find some help.





                      Comment


                        #12
                        Would it be possible to use an a conditional within slider that uses Image Theme Component? It would sure simplify things for store owners.

                        Ideally, I would like to see a UI wherein store owner uploads the image via Theme Component with a schedule option like Price Groups, and "put an end the coding"!
                        Thank you, Bill Davis

                        Comment


                          #13
                          I am with you on the conditional William, this is the one thing that broke with my v10 dev upgrade. I might just hard code things for now but it isn't ideal.
                          http://www.bandana.com
                          http://www.wholesaleforeveryone.com

                          Comment


                            #14
                            Originally posted by mikey View Post
                            I am with you on the conditional William, this is the one thing that broke with my v10 dev upgrade. I might just hard code things for now but it isn't ideal.
                            If you have a solution for hard coding, that would be a great help. We were completely blindsided by this update. My client had someone else up to our current, but now deprecated theme only 2 years ago...

                            Comment


                              #15
                              birdwaves Can you post the HTML code you are using for the slider either here or in a Gist?
                              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

                              Working...
                              X