Miva Merchant Community Forums

  1. #1
    Join Date
    Aug 2007
    Posts
    32

    Default Need help calling product image in Category page

    Can anyone give me the code for calling a product image url in a category page? Ideally the image url for the 1st product listed on the category page.

    TIA!
    DT
    Last edited by dtebbe; 11-08-12 at 01:39 PM.

  2. #2
    Join Date
    Apr 2006
    Location
    North Carolina
    Posts
    662

    Default Re: Need help calling product image in Category page

    Try the following. Unless your path is not correct, it will work.

    Code:
    <mvt:if expr="NOT ISNULL           l.settings:product:thumbnail"><a           href="&mvte:product:link;"><img           src="&mvte:product:thumbnail;"           alt="&mvte:product:name;" />

    Hope this helps!

    Jamie
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

  3. #3
    Join Date
    Aug 2007
    Posts
    32

    Default Re: Need help calling product image in Category page

    Quote Originally Posted by jsdva View Post
    Try the following. Unless your path is not correct, it will work.

    Code:
    <mvt:if expr="NOT ISNULL           l.settings:product:thumbnail"><a           href="&mvte:product:link;"><img           src="&mvte:product:thumbnail;"           alt="&mvte:product:name;" />

    Hope this helps!

    Jamie
    This looks like MM5 code, right? I need MM4 code :)

  4. #4
    Join Date
    Apr 2006
    Location
    North Carolina
    Posts
    662

    Default Re: Need help calling product image in Category page

    Here is the MM4:

    Code:
    <mvt:if expr="NOT ISNULL l.settings:product:thumbnail">
    <a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvta:store:code;&Product_Code=&mvta:product:code;&Category_Code=&mvta:category:code;"><img src="&mvte:product:thumbnail;" border=0></a>
    <mvt:else>
    &nbsp;
    </mvt:if>
    Sorry.

    Jamie
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •