Skip to content

Instantly share code, notes, and snippets.

@deniscsz
Created May 12, 2014 17:16
Show Gist options
  • Select an option

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

Select an option

Save deniscsz/e2502a0f92210c84e2e8 to your computer and use it in GitHub Desktop.
/**
@params: SessionId (Autenticação), Tipo do Produto, ID do SET (veja tabela no google drive), SKU, Atributos (Array)
*/
$result = $client->catalogProductCreate($session, 'simple', '11', 'product_sku2', array(
'categories' => array(2), //Id das categorias
'websites' => array(1), //Utilizar sempre 1
'name' => 'Product ERP', //Nome
'description' => 'Product description', //Descrição
'weight' => '10', //Peso
'status' => '0', //Status desabilitado
'visibility' => '4', //Visibilidade
'price' => '100', //Preço
'tax_class_id' => 1, //Sempre usar Tax Class ID sempre 1
'stock_data ' => array( //Info de Estoques
'qty' => '49',
'is_in_stock' => 1
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment