PrestaShop 101

  1. Home
  2. Developer Tips
  3. How to find out how many elements are in an array using Smarty templates

How to find out how many elements are in an array using Smarty templates

  • Created June 11, 2015
  • Author Presta101
  • Category Developer Tips

{if $myarray|@count gt 0}…{/if}

References:

http://www.smarty.net/forums/viewtopic.php?p=37762&s

Was this article helpful?

Yes No

Related Articles

  • Where is the database connection file config/settings.php in PrestaShop 1.7
  • How to setup cron job in cPanel to execute a URL
  • [PrestaShop Bug] Cannot Edit Product – Save Does Not Work
  • How to get all customers who have never bought anything in PrestaShop
  • How to get PrestaShop template page name with php
  • How to get PrestaShop controller page name with php
© Copyright PrestaShop Developer.