Skip to content

Instantly share code, notes, and snippets.

@deniscsz
Created July 18, 2013 19:22
Show Gist options
  • Select an option

  • Save deniscsz/6032187 to your computer and use it in GitHub Desktop.

Select an option

Save deniscsz/6032187 to your computer and use it in GitHub Desktop.
$fields['produto'][$count]['produto_codigo'] = $item->getSku();
$fields['produto'][$count]['produto_nome'] = $item->getName();
$fields['produto'][$count]['produto_qtd'] = $item->getQtyOrdered();
$fields['produto'][$count]['produto_peso'] = number_format($item->getWeight(), '2');
$fields['produto'][$count]['produto_valor'] = number_format(($item->getFinalPrice() ? $item->getFinalPrice() : $item->getPrice()), '2');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment