Announcement

Collapse
No announcement yet.

ous1 upsell of one item in checkout has no product image

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

  • ous1 upsell of one item in checkout has no product image

    Is it possible the changes in the script for the first slider issue I reported in the previous topic may have affected the upsale page in the checkout?
    I remember last friday (last time I tested the checkout) that the upsale item had an image. But now it doesn't.
    I added the tool belt var list and I don't see the image in the output.


  • The product page and the OUS1 page have no impact on each other. However, the OUS1 page does look for the product thumbnail image. So, if you removed that from the upsell product, then it will not show.
    Matt Zimmermann
    Director of UI/UX Standards and Theme Development
    / Miva, Inc.

    Comment


    • the legacy thumbnail image?

      How do I convert this to use the image machine main image instead?

      I did refresh all the products and since we don't use legacy images in our old store (this is a very old product from the miva4 days, so it probably had it), I didn't import that field.

      Comment


      • Change your image code to something like this:
        Code:
        <mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:upsale:id, 1, l.settings:imagetype)" />
        <mvt:do name="l.success" file="g.Module_Library_DB" value="Image_Load_ID(l.settings:imagetype:image_id, l.settings:imagedata)" />
        <img src="&mvte:imagedata:image;" alt="&mvte:upsale:name;">
        Matt Zimmermann
        Director of UI/UX Standards and Theme Development
        / Miva, Inc.

        Comment


        • from the developer docs and another forum post i figured out the 1 in
          ProductImage_Load_Type(l.settings:upsale:id, 1, l.settings:imagetype) supposed to be the id of the main type from the s01_ImageTypes table?
          In my database my main image type is actually id = 4. So I did this to future proof any changes and for use in my other stores where imagetype id isn't id 4 or 1:

          <mvt:do file="g.Module_Library_DB" name="l.success" value="ImageType_Load_Code('main', l.settings:imtype)" />
          <mvt:do name="l.success" file="g.Module_Library_DB" value="ProductImage_Load_Type(l.settings:upsale:id , l.settings:imtype:id, l.settings:imagetype)" />
          <mvt:do name="l.success" file="g.Module_Library_DB" value="Image_Load_ID(l.settings:imagetype:image_id , l.settings:imagedata)" />

          It works, but I"m not sure if it is the best way.
          Last edited by kayakbabe; 05-16-18, 02:33 PM.

          Comment

          Working...
          X

          This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

          This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

          Accept