Announcement

Collapse
No announcement yet.

Base Readytheme / PROD page template / No image avaialable

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

    #16
    Re: Base Readytheme / PROD page template / No image avaialable

    Originally posted by Brennan View Post
    If you're still having issue, Private Message me access to your store and I can take a look.
    Just sent.

    Thanks,

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

    Comment


      #17
      Re: Base Readytheme / PROD page template / No image avaialable

      I see the issue.

      The code I posted above only works on CTGY. The product page can only access the image types via the custom field syntax:

      Code:
      <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:productimagecustomfields:main">
      	<img src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" title="&mvte:product:name;" id="main_image" class="aligncenter" />
      <mvt:elseif expr="NOT ISNULL l.settings:product:image">
      	<img src="&mvt:product:image;" alt="&mvte:product:name;" title="&mvte:product:name;" class="aligncenter" />
      <mvt:else>
      	<img src="http://placehold.it/200x200" alt="&mvte:product:name;" title="&mvte:product:name;" class="aligncenter" />
      </mvt:if>
      Make sure the image type custom field of main is assigned to the product page in the custom fields section.
      Brennan Heyde
      VP Product
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #18
        Re: Base Readytheme / PROD page template / No image avaialable

        Originally posted by Brennan View Post
        I see the issue.

        The code I posted above only works on CTGY. The product page can only access the image types via the custom field syntax:

        Code:
        <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:productimagecustomfields:main">
            <img src="graphics/en-US/cssui/blank.gif" alt="&mvte:product:name;" title="&mvte:product:name;" id="main_image" class="aligncenter" />
        <mvt:elseif expr="NOT ISNULL l.settings:product:image">
            <img src="&mvt:product:image;" alt="&mvte:product:name;" title="&mvte:product:name;" class="aligncenter" />
        <mvt:else>
            <img src="http://placehold.it/200x200" alt="&mvte:product:name;" title="&mvte:product:name;" class="aligncenter" />
        </mvt:if>
        Make sure the image type custom field of main is assigned to the product page in the custom fields section.
        Absolutely perfect! Works like a charm now! Thank you so much, Brennan!! You are the best!!

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

        Comment

        Working...
        X