J'ai le code ci-dessous, en essayant d'obtenir un produit retourné avec tous les attributs appropriés.API Magento en C# .Net: problème de catalogProductRequestAttributes
Je ne reçois aucune erreur mais je ne vois aucun attribut dans la variable "prod".
private void frmProductDetail_Load(object sender, EventArgs e)
{
MagentoService service = new MagentoService();
MagentoServiceHelper help = MagentoServiceHelper.Instance;
catalogAttributeEntity[] attributes = service.catalogProductAttributeList(help.SessionID, AttributeSet); //AttributeSet is a property of the form
catalogProductRequestAttributes att = new catalogProductRequestAttributes();
string[] attlist = new string[attributes.Length];
for (int i = 0; i < attributes.Length; i++)
{
attlist[i] = attributes[i].code;
}
att.attributes = attlist;
catalogProductReturnEntity prod = service.catalogProductInfo(help.SessionID,
ProductId, "default", att, "sku"); //ProductId is a property of the form
}
Non, cela ne fonctionne pas. Je reçois exactement les mêmes résultats. –
http://code.google.com/p/csharlibformagexmlrpcapi/ Peut vous aider? – B00MER
Vous voulez dire "nul" plutôt que "rien", sans doute? – codeulike