Announcement

Collapse
No announcement yet.

Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Function

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

    #31
    Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

    Is this close to what you had in mind? http://www.emporiumplus.com/FAQS.html I'm having an issue in testing with one store in testing and trying to figure out what the problem is with that one store.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment


      #32
      Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

      That'll do it.
      Steven Spriggs
      Web Developer
      ktm-parts.com

      Comment


        #33
        Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

        Send me an email off list.
        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
        Facebook http://www.facebook.com/EmporiumPlus
        Twitter http://twitter.com/emporiumplus

        Comment


          #34
          Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

          OK. Found the issue and changed the logic to cover that scenario. The new capabilities of the customimage and customimagec functions are in the current release of the tool kit.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #35
            Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

            With the latest toolkit version and help from Bill you can do something like this on the product page. replacing the 360 with your max width and height

            Code:
            <mvt:item name="toolkit" param="customimagec|big|g.product_code||360|360|1" />
            <div id="product-info-wrap" class="clearfix">
            <div id="product-image-container" class="clearfix">
            <div class="product-image">
            <img src="http://www.YOURDOMAIN.com/mm5/&mvte:global:big;" alt="&mvt:product:name;" id="main_image" /></div>
            for facebook sharing you would do something like

            <mvt:item name="toolkit" param="customimagec|big|g.product_code||360|360|1" />
            <meta property="og:image" content="http://www.YOURDOMAINNAME.com/mm5/&mvte:global:big;"/>

            if you want to specify an image by type simply do this
            Code:
            <mvt:item name="toolkit" param="customimagec|big|g.product_code|YOURIMAGETYPECODE|360|360|1" />
            <meta property="og:image" content="http://www.vermontgear.com/mm5/&mvte:global:big;"/>
            Last edited by Mark Hood; 06-23-12, 09:38 AM.
            Mark Hood
            Vermont Gear

            Comment


              #36
              Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

              sorry for the late reply. my client was on vacation and could not update the module until the other day.

              So I have another question about the implementation with this when you use it in a sub_product array foreach:

              Code:
              <mvt:foreach iterator="sub_product" array="sub_products">
                  <li class="span2">
                      <a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvt:store:code;&Product_Code=&mvt:sub_product:code;" class="thumbnail">
              
                          <mvt:item name="toolkit" param="customimagec|thumbnail|l.all_settings:key_product:id||170|170|1" />
                           <img src="&mvte:global:thumbnail;" />
                           ...
                      </a>
                  </li>
              </mvt:foreach>
              The l.all_settings:key_product:id does not work here. What would be the replacement variable in a foreach such as this?
              Last edited by ZER0KTM; 07-07-12, 07:49 AM.
              Steven Spriggs
              Web Developer
              ktm-parts.com

              Comment


                #37
                Re: Pulling Product Image Custom Fields (Image Machine) within a Toolkit subcat Funct

                I figured it out, just had to do a bit more research. For those wondering to do this:

                you have to use l.all_settings:sub_product:code

                Code:
                <mvt:foreach iterator="sub_product" array="sub_products">
                    <li class="span2">
                        <a href="&mvt:global:sessionurl;Screen=PROD&Store_Code=&mvt:store:code;&Product_Code=&mvt:sub_product:code;" class="thumbnail">
                                    
                            <mvt:item name="toolkit" param="customimagec|thumbnail|l.all_settings:sub_product:code||170|170|1" />
                
                                <img src="http://dev.ktm-parts.com/mm5/&mvte:global:thumbnail;" />
                                ...
                                
                        </a>
                    </li>
                </mvt:foreach>
                Steven Spriggs
                Web Developer
                ktm-parts.com

                Comment

                Working...
                X