Magento: getSingleton('customer/session') doesn't return information when called via SOAP -
I am currently trying to capture customer data after capturing an object and capturing checkout_submit_all_after event with the observer I am If I order through Frontend, Dana :: MilenicTalton ('Customer / Session')
and Dana :: Millennintlton ('checkout / session')
ran Inside the supervisor gives me a wealth of information, although when I make an order through SOAP, these methods do not return anything. I also have the mage :: helper ('customer') - & Gt; Tried to getCustomer ()
, but he did not return anything
Is there any other way that I can get the data of the last submitted order? Especially I need a customer from a session and the last order ID ala Dana :: Milenchington ('checkout / session') - & gt; GetLastRealOrderId ()
.
Look at this nonsense: quote-> customer_mail field is basically populated with email, then SOAP After setting the address with the 'ShoppingCart Customer Records' method, _prepareGuestQuote tells this with "$ quote-> getBillingAddress () -> getEmail ()) from Checkout / Modal / API / Resource / Customer.FPP. Why! Why? See the wsdl definition of the address:
complex type name = "ShoppingCart client customer Element name = "mode" type = "xsd: string" minOccurs = "0" /> element name = "first name" type = "xsd: string" minOccurs = "0" />
element name E = "last name" type = " Xsd: string "minOccurs =" 0 "/> element name =" company "type =" xsd: string "minOccurs =" 0 "/> element element name =" city "type =" xsd: string "minOccurs =" 0 "/> & Lt; Element name = "region" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "region_id" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "postcode" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "country_id" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "telephone" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "fax" type = "xsd: string" minOccurs = "0" /> & Lt; Element name = "is_default_billing" type = "xsd: int" minOccurs = "0" /> & Lt; Element name = "is_default_shipping" type = "xsd: int" minOccurs = "0" /> & Lt; / Sub & gt; & Lt; / ComplexType & gt;
Do you see an 'email' field there? I'm not sure! So now I have to override the work to make this work. Seriously Magento, wtf?
Comments
Post a Comment