Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

web service - habilitar campos opicionais dos clientes
 
dsalvanhini
Jr. Member
 
Total Posts:  4
Joined:  2011-02-11
 

Ola pessoal, estou com o seguinte problema.

segundo o manual da API via SOAP.

no envento “customercreate” existem os campos opicionais

string prefix Customer prefix (optional)
string suffix Customer suffix (optional)
string dob Customer date of birth (optional)
string taxvat Customer tax/VAT number (optional)
int gender Customer gender: 1 - Male, 2 - Female (optional)
string middlename Customer middle name/initial (optional)

ja habilitei no painel em system-configuration-customer configuration- os campos que preciso.

mas mesmo assim não aparece no dicionario do xml,

<complexType name="customerCustomerEntityToCreate">
<
all>
<
element name="customer_id" type="xsd:int" minOccurs="0"/>
<
element name="email" type="xsd:string" minOccurs="0"/>
<
element name="firstname" type="xsd:string" minOccurs="0"/>
<
element name="lastname" type="xsd:string" minOccurs="0"/>
<
element name="password" type="xsd:string" minOccurs="0"/>
<
element name="website_id" type="xsd:int" minOccurs="0"/>
<
element name="store_id" type="xsd:int" minOccurs="0"/>
<
element name="group_id" type="xsd:int" minOccurs="0"/>
</
all>
</
complexType>

alguem sabe onde tenho que alterar para que esses campos que são opcionais fiquem disponível no webservice?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dsalvanhini
Jr. Member
 
Total Posts:  4
Joined:  2011-02-11
 

o correto seria estar assim

<complexType name="customerCustomerEntityToCreate">
<
all>
<
element name="customer_id" type="xsd:int" minOccurs="0"/>
<
element name="email" type="xsd:string" minOccurs="0"/>
<
element name="firstname" type="xsd:string" minOccurs="0"/>
<
element name="middlename" type="xsd:string" minOccurs="0"/>
<
element name="lastname" type="xsd:string" minOccurs="0"/>
<
element name="suffix" type="xsd:string" minOccurs="0"/>
<
element name="taxvat" type="xsd:string" minOccurs="0"/>
<
element name="gender" type="xsd:int" minOccurs="0"/>
<
element name="dob" type="xsd:string" minOccurs="0"/>
<
element name="password" type="xsd:string" minOccurs="0"/>
<
element name="website_id" type="xsd:int" minOccurs="0"/>
<
element name="store_id" type="xsd:int" minOccurs="0"/>
<
element name="group_id" type="xsd:int" minOccurs="0"/>
</
all>
</
complexType>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top