Skip to content

Instantly share code, notes, and snippets.

@bheyde
Created September 15, 2016 16:31
Show Gist options
  • Save bheyde/23f5cf0e2082e744648c5737e14ae70f to your computer and use it in GitHub Desktop.
Save bheyde/23f5cf0e2082e744648c5737e14ae70f to your computer and use it in GitHub Desktop.
<mvt:foreach array="paymentmethods" iterator="method">
<mvt:if expr="l.settings:method:paymentcard:id">
<option value="paymentcard:&mvte:method:paymentcard:id;">&mvt:method:name;</option>
<mvt:elseif expr="l.settings:method:paymentcardtype:id">
<option value="paymentcardtype:&mvte:method:paymentcardtype:id;">&mvt:method:name;</option>
<mvt:else>
<option value="&mvte:method:module;:&mvte:method:code;">&mvt:method:name;</option>
</mvt:if>
</mvt:foreach>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment