php - The mystery of the CMS Page and the elusive If Statement -


i trying if statement functionality in magento cms page.

this post recommends following:

{{if customer.group_id==4}} print true {{else}} print false {{/if}} 

which exact kinda thing looking for, doesnt work. there similar can use?

this trying do:

{{if data.request_quote=="on"}} yes {{else}} nope {{/if}} 

where var data.request_quote form variable. keeps coming out nope, if data.request_quote on.

can help?

this cant done. type of if statement work on boolean variables, , can pass string variables this.

so transactional emails have on instead of yes.

very disappointing.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -