Announcement

Collapse
No announcement yet.

Attribute/Option prompt on ORDS page template

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

    Attribute/Option prompt on ORDS page template

    Can someone tell me how to get the Attribute/Option prompt to display in the ORDS page template?
    This isn't working:

    <mvt:foreach iterator="option" array="item:options">
    <p>
    <mvt:if expr="l.settings:option:option_id">
    <small>&mvt:option:attr_code;: <strong>&mvt:option:opt_code;</strong></small>
    <mvt:elseif expr="NOT ISNULL l.settings:option:data">
    <small>&mvt:option:attr_code;: <strong>&mvt:option:data;</strong></small>
    <mvt:elseif expr="NOT ISNULL l.settings:option:data_logn">
    <small>&mvt:option:attr_code;: <strong>&mvt:option:data_long;</strong></small>
    <mvt:else>
    <small>&mvt:option:attr_code;</small>
    </mvt:if>
    </p>
    </mvt:foreach>
    Lynda Freeman
    Paragon Publications
    www.paragonpubs.com
    [email protected]

    #2
    Re: Attribute/Option prompt on ORDS page template

    That code looks correct. Try reverting your page template back to default and view the code to see a working version. Perhaps your code is in the wrong spot.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Attribute/Option prompt on ORDS page template

      The attribute code comes up fine in all versions ... but I want the prompt instead?
      This does not work?
      &mvt:option:attr_prompt;:
      Last edited by lfreeman; 05-19-15, 05:00 AM.
      Lynda Freeman
      Paragon Publications
      www.paragonpubs.com
      [email protected]

      Comment


        #4
        Re: Attribute/Option prompt on ORDS page template

        Ahh, sorry I misunderstood your question.

        Yes, the attribute prompt is available.

        &mvt:option:attr_prompt;


        Code:
        <mvt:foreach iterator="option" array="group:options">
        	<p>
        		<mvt:if expr="l.settings:option:option_id">
        			<small>&mvt:option:attr_prompt;: <strong>&mvt:option:opt_prompt;</strong></small>
        		<mvt:elseif expr="NOT ISNULL l.settings:option:data">
        			<small>&mvt:option:attr_prompt;: <strong>&mvt:option:data;</strong></small>
        		<mvt:elseif expr="NOT ISNULL l.settings:option:data_long">
        			<small>&mvt:option:attr_prompt;: <strong>&mvt:option:data_long;</strong></small>
        		<mvt:else>
        			<small>&mvt:option:attr_prompt;</small>
        		</mvt:if>
        	</p>
        </mvt:foreach>
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: Attribute/Option prompt on ORDS page template

          Thank you for confirming this.

          For anyone that experiences this issue, for some reason the options that were not showing were ones that have currently been revised? I expected that information to have been saved and should show as it was when the orders were placed? Now that I have created a fresh order to view, the prompts are showing as they should be.
          Lynda Freeman
          Paragon Publications
          www.paragonpubs.com
          [email protected]

          Comment

          Working...
          X