Announcement

Collapse
No announcement yet.

Account Credit Conditional on OSEL

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

    Account Credit Conditional on OSEL

    I'm using a conditional on the OSEL screen to display a balance if the customer has account credit and another message altogether if their balance is zero. I've placed the conditional right next to the payment options and it works great. However as soon as I change the payment options sort order using the new Payment Settings > Payment Method Rules so that the Credit option is at the top of the list, the conditional no longer works. It displays the same thing regardless of whether there is a credit balance or not. Here is the basic conditional that I'm using...

    <mvt:if expr="l.settings:method:code EQ 'credit'">
    Your account credit balance is &mvt:customer:formatted_credit;
    <mvt:else>
    You have no account credit
    </mvt:if>

    Thoughts?
    Tony Pavao
    Studio6t6
    Vancouver BC Canada
    [email protected]

    #2
    this conditional is only looking at the first payment method.

    <mvt:if expr="l.settings:method:code EQ 'credit'">

    Instead you can do something like this:

    [code]
    <mvt:if expr="l.settings:customer:credit NE 0">
    Your account credit balance is &mvt:customer:formatted_credit;
    <mvt:else>
    You have no account credit
    </mvt:if>
    [code]
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Perfect! Worked like a charm. Thanks Brennan.
      Tony Pavao
      Studio6t6
      Vancouver BC Canada
      [email protected]

      Comment

      Working...
      X