Пытаюсь отредактировать шаблон. В переменную $coupon_array выводится результат SQL запроса в виде массива:
Array ( [0] => stdClass Object ( [id] => 11
=> THANKYOU [value] => 5.00 [type] => absolute [expire] => 2015-06-01 00:00:00 [min_order_price] => 50000.00 [single] => 1 [usages] => 0 ) [1] => stdClass Object ( [id] => 15 => SIMPLACMS [value] => 10.00 [type] => absolute [expire] => [min_order_price] => 150000.00 [single] => 0 [usages] => 0 ) [2] => stdClass Object ( [id] => 17 => TESTCOUPON [value] => 0.10 [type] => percentage [expire] => 2010-06-01 00:00:00 [min_order_price] => 0.00 [single] => 0 [usages] => 0 ) )
Пытаюсь показать поле code следующим образом:
<select name="coupon" >
{section name=pp loop=count($coupon_array)}
<option>{$coupon_array[pp].id}</option>
{/section}
Почему ничего не выводится?