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?

  • 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 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/… – Jelle Dijkstra May 2 at 13:58
  • yeah, thx Jelle! – Bart May 3 at 14:58

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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