Announcement

Collapse
No announcement yet.

Related Products missing Images

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

    Related Products missing Images

    I have finally created additional images for all of my items and have an image tagged as "Category Image" for each item. This is working well on the on the Category Pages. However, when I remove the Legacy Thumbnail images from items the image no longer shows in the Related Items on the PROD page. The Related Items are still there, just without images.

    Have I missed a Template change on the PROD page or somewhere else?

    Thanks!
    Keith Oratz
    PrepareSmart, LLC - Emergency Preparedness Supplies and Professional Grade Search and Rescue Gear
    www.preparesmart.com

    #2
    Re: Related Products missing Images

    You have to add the image machine item for related products and add the code to the related images. Procedure is very similar to adding category images using image machine.
    Andreas Toman
    PCINET, LLC

    Miva Merchant Design, Development, Integration & Support
    We built over 200 Miva Merchant stores!
    Miva shopping cart design & integration service and see our Portfolio!


    e-mail: [email protected]
    web: www.pcinet.com
    LinkedIn: Andreas Toman
    phone: (786) 250-2056 (Miami, FL)

    Comment


      #3
      Re: Related Products missing Images

      Ok, I got them to show and am now working on getting the images centered, which is the same problem I had on the Category pages.

      In that case we created a CSS style with height and width under CTGY that worked. Now I need to do that with the Related-Items. I think there may be a mismatch between my Related Items List Layout (Template) and the CSS file.

      Here is the relevant part of the Template. Does it make sense that that it refers to Thumbnails?

      <mvt:foreach iterator="product" array="related_products:products">
      <div class="product-item" style="width:33%">
      <div class="padding">
      <div class="product-details">
      <div class="product-image">
      <img id="main_image_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" />
      </div>
      <ul id="thumbnails_&mvte:product:id;" class="thumbnails"></ul>
      <div id="closeup_div_&mvte:product:id;" class="closeup"><img id="closeup_image_&mvte:product:id;" src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;"><div><a id="closeup_close_&mvte:product:id;">close</a></div></div>
      <mvt:item name="related_products_imagemachine" param="body:product:id" />
      <div class="clear product-image-margin"></div>
      <div class="product-name"><a href="&mvte:product:link;">&mvt:product:name;</a></div>
      <div class="product-code">Code: <span class="bold">&mvt:product:code;</span></div>
      <div class="product-price">Price: <span class="bold">&mvt:product:formatted_price;</span></div>
      <mvt:if expr="l.settings:product:weight NE 0">
      <div class="product-weight">Weight: <span class="bold">&mvt:product:weight;</span></div>
      </mvt:if>
      <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:productimage customfields:CATIMG">
      <div class="custom-field" id="productimagecustomfields-CATIMG">&mvte:customfield_names:productimagecustom fields:CATIMG;: <span class="bold">&mvt:product:customfield_values:produ ctimagecustomfields:CATIMG;</span></div>
      </mvt:if>
      <mvt:if expr="l.settings:product:inv_active">&mvt:product: inv_long;<br></mvt:if>
      <div class="product-quantity">Quantity in Basket:
      <mvt:if expr="l.settings:product:quantity EQ 0">
      <span class="italic">none</span>
      <mvt:else>
      <span class="italic">&mvt:product:quantity;</span>
      </mvt:if>
      </div>
      </div>
      <mvt:if expr="l.settings:product:inv_level NE 'out'">
      <div class="purchase-buttons">
      <form method="post" action="&mvte:global:sessionurl;Screen=BASK">
      <input type="hidden" name="Old_Screen" value="&mvte:global:Screen;" />
      <input type="hidden" name="Old_Search" value="&mvte:global:Search;" />
      <input type="hidden" name="Action" value="ADPR" />
      <input type="hidden" name="Quantity" value="1" />
      <input type="hidden" name="Attributes" value="Yes" />
      <input type="hidden" name="Store_Code" value="&mvte:store:code;" />
      <input type="hidden" name="Product_Code" value="&mvte:product:code;" />
      <input type="hidden" name="Current_Product_Code" value="&mvte:global:Product_Code;" />
      <input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;" />
      <input type="hidden" name="Offset" value="&mvte:global:RelatedOffset;" />
      <input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
      <input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
      <input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
      <input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
      <mvt:item name="buttons" param="AddToBasketE" />
      </form>
      </div>
      </mvt:if>
      </div>
      </div>
      </mvt:foreach>
      <div class="clear"></div>
      <mvt:if expr="NOT l.settings:related_products:page_disp_count GT 0">
      <mvt:if expr="g.RelatedOffset OR g.RelatedNextOffset">
      <div class="next-previous">
      <mvt:if expr="g.RelatedOffset GT 0">
      <div class="previous-button">
      <form method="post" action="&mvte:global:sessionurl;">
      <input type="hidden" name="Screen" value="&mvte:global:Screen;" />
      <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
      <input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;" />
      <input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;" />
      <input type="hidden" name="Search" value="&mvte:global:Search;" />
      <input type="hidden" name="Per_Page" value="&mvte:global:Per_Page;" />
      <input type="hidden" name="Sort_By" value="&mvte:global:Sort_By;" />
      <input type="hidden" name="Offset" value = "&mvte:global:RelatedPrevOffset;" />
      <input type="hidden" name="AllOffset" value = "&mvte:global:AllOffset;" />
      <input type="hidden" name="CatListingOffset" value = "&mvte:global:CatListingOffset;" />
      <input type="hidden" name="RelatedOffset" value = "&mvte:global:RelatedPrevOffset;" />
      <input type="hidden" name="SearchOffset" value = "&mvte:global:SearchOffset;" />
      <mvt:item name="buttons" param="Previous" />
      </form>
      </div>
      </mvt:if>

      <mvt:if expr="g.RelatedNextOffset GT 0">
      <div class="next-button">
      <form method="post" action="&mvte:global:sessionurl;">
      <input type="hidden" name="Screen" value="&mvte:global:Screen;" />
      <input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" />
      <input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;" />
      <input type="hidden" name="Product_Code" value="&mvte:global:Product_Code;" />
      <input type="hidden" name="Search" value="&mvte:global:Search;" />
      <input type="hidden" name="Per_Page" value="&mvte:global:Per_Page;" />
      <input type="hidden" name="Sort_By" value="&mvte:global:Sort_By;" />
      <input type="hidden" name="Offset" value = "&mvte:global:RelatedNextOffset;" />
      <input type="hidden" name="AllOffset" value = "&mvte:global:AllOffset;" />
      <input type="hidden" name="CatListingOffset" value = "&mvte:global:CatListingOffset;" />
      <input type="hidden" name="RelatedOffset" value = "&mvte:global:RelatedNextOffset;" />
      <input type="hidden" name="SearchOffset" value = "&mvte:global:SearchOffset;" />
      <mvt:item name="buttons" param="Next" />
      </form>
      </div>
      </mvt:if>
      </div>
      </mvt:if>
      </mvt:if>
      </div>
      Keith Oratz
      PrepareSmart, LLC - Emergency Preparedness Supplies and Professional Grade Search and Rescue Gear
      www.preparesmart.com

      Comment

      Working...
      X