Announcement

Collapse
No announcement yet.

Toolkit custom field Help

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

    Toolkit custom field Help

    Can someone point me in the right direction to get the custom field to show in the code below. I am trying it on a category page and the "Deals" field is available. I am testing the code in the header section of an active category, the Product Name and Price are showing.

    Code:
     <mvt:item name="toolkit" param="sassign|cat_code|Head_Eyewear_Chart" />
            <mvt:item name="toolkit" param="cxpc|pcount|cat_code" />
    
    
            <mvt:if expr="pcount GT 0">
                <mvt:foreach iterator="sub_product" array="sub_products">
    
    <a href="http://www.xyz.com/&mvt:sub_product:code;.html">&mvt:sub_product:name;</a><br />
    Price: &mvt:sub_product:formatted_price;<br />
    &mvt:sub_product:customfield_values:customfields:Deals;<br />
                </mvt:foreach>
            </mvt:if>
    Thanks

    Mark

    #2
    Re: Toolkit custom field Help

    Take a look at the "custom" function at #19 at http://www.emporiumplus.com/v5/tk.htm

    In your scenario the line would probably be
    <mvt:item name="toolkit" param="custom|deal|l.all_settings:sub_product:id|D eals" />
    Then you would display it with &mvte:global:deal;
    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


      #3
      Re: Toolkit custom field Help

      Yes that worked, Thank You very much

      Mark

      Comment


        #4
        Re: Toolkit custom field Help

        The solution I gave you uses the toolkit function. There is now a built in function to do it. When available, you should use the built in functions and rely less on 3rd party solutions. The built in would probably be something like this
        Code:
        <mvt:item name="customfields" param="Read_Product_Code(l.settings:sub_product:code, 'Deals', g.Deal)" />
        &mvt:global:Deal;
        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


          #5
          Re: Toolkit custom field Help

          Yea I though about that this morning after reading your toolkit response. Thanks Bill

          Comment

          Working...
          X