0

Relatively new to Magento and seeing a lot of this lately in (email) templates:

{{template config_path="design/email/footer"}}
{{depend order.getIsNotVirtual()}} 
{{layout handle="sales_email_order_items" order=$order}} 
{{inlinecss file="email-inline.css"}} 
{{block type='core/template' area='frontend' template='sales/custom_logic.phtml'}}

For example: {{depend order.getIsNotVirtual()}}

Is order a model instance and can you just call every available function as you would in plain PHP code?

I see functions getting called, variables passed around with $, ... But I am missing a global overview / documentation of exactly what is available and what can/should be used where.

Where can I find a good overview of all this functionality?

1

Is order a model instance and can you just call every available function as you would in plain PHP code? -> Yes

Inside template '$order' means Mage_Sales_Model_Order, So you can use any function that exist in this class. If missing then add missing function for this class.

Updated

Magento Predefined Variables 1 Magento Predefined Variables 2

Checkhere

another

another

  • Tnx, Sohei! And you're suppose to use them only in email templates and in CMS/Pages/Blocks, right? Still looking for a complete overview of all available tags, though... – Maarten Troonbeeckx May 11 '16 at 10:43
  • I updated answer – Sohel Rana May 11 '16 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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