Announcement

Collapse
No announcement yet.

Conditional for order status?

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

    Conditional for order status?

    Hello, I'm trying to get rid of displaying "Pending" status because it is confusing some customers. I want ORDH and ORDS in our Levels theme to not show pending. I tried the 2 statements below, and both skip to else, so I'm doing it wrong....

    <mvt:if expr="l.settings:item:order_status EQ 'Pending' ">In Production
    <mvt:elseif expr="l.settings:item:order_status EQ 'Processing' ">In Production
    <mvt:else>&mvt:order:order_status;
    </mvt:if>

    <mvt:if expr="l.settings:order:order_status EQ '0'">In Production
    <mvt:elseif expr="l.settings:order:order_status EQ '100'">In Production
    <mvt:else>&mvt:order:order_status;
    </mvt:if>


    Thanks for helping!

    #2
    Try using l.settings:order:order_status instead of l.settings:item:order_status
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Thanks! I thought I had tried that but I guess not.

      I did settings:order in ORDH Order History Layout, and settings:item in ORDS Order Contents, and I think it's working. In hindsight it makes sense :/

      Comment

      Working...
      X