I have foreach loop, but it only returns a single option in select menu. Vardump shows multiple results. What am I missing?
$vars = explode(\';\', $this->sett
$vars = explode(';', $this->settings['address']);
$myReturn = array();
foreach ($vars as $row) {
array_push($myReturn, array(
'title' => $this->name,
'options' => array(
array(
'id' => 'option_1',
'icon' => $this->settings['icon'],
'name' => 'Option 1',
'description' =>'',
'fields' => '' ,
'cost' => $this->settings['fee'],
'tax_class_id' => $this->settings['tax_class_id'],
'exclude_cheapest' => false,
),
),
));
}
return $myReturn;