0

I want to offer manual payment option only if cart total amount is above 100,00 but {if order_total > 100} doesnt seem to work.

Any sugestions anyone?

3
  • Correction: Syntax error, shoud be {if {order_total} > 100} but then i get error because of the leading $-sign. Is there a way to not include the 4sign inside the conditional?
    – Bart
    May 2, 2018 at 12:25
  • you might be able to strip it off. depending on which EE version you are it ccould be done with a plugin like streeng/ce string or natively with EE4 docs.expressionengine.com/latest/templates/… May 2, 2018 at 13:58
  • yeah, thx Jelle!
    – Bart
    May 3, 2018 at 14:58

1 Answer 1

0

I ended up using streeng plugin, final code syntax that worked for me:

{if "{exp:streeng find='€' replace=''}{order_total}{/exp:streeng}" > 100}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.