Skip to main content
Post Closed as "Duplicate" by David Manners, Marius
added 20 characters in body
Source Link
$quoteItems=array();
foreach($quotecollection as $value)
{                                           
$quoteItems[] = $value['name'];
}. 
$vars['articledescription'] = $value['name'];.

$quoteItems=array(); foreach($quotecollection as $value) {
$quoteItems[] = $value['name']; }. $vars['articledescription'] = $value['name'];. II have used the above code for email template. I want the product name to be iterated through loops , when there are multiple products ordered by customers. pls suggest with code

$quoteItems=array(); foreach($quotecollection as $value) {
$quoteItems[] = $value['name']; }. $vars['articledescription'] = $value['name'];. I have used the above code for email template. I want the product name to be iterated through loops , when there are multiple products ordered by customers. pls suggest with code

$quoteItems=array();
foreach($quotecollection as $value)
{                                           
$quoteItems[] = $value['name'];
}. 
$vars['articledescription'] = $value['name'];.

I have used the above code for email template. I want the product name to be iterated through loops , when there are multiple products ordered by customers. pls suggest with code

Source Link
Sushivam
  • 2.6k
  • 3
  • 36
  • 88

iterate by using loops for template variables in magento

$quoteItems=array(); foreach($quotecollection as $value) {
$quoteItems[] = $value['name']; }. $vars['articledescription'] = $value['name'];. I have used the above code for email template. I want the product name to be iterated through loops , when there are multiple products ordered by customers. pls suggest with code