1

Under a sales_order_place_after event Observer, I try I save a guest customer and I try to save the order Adresses into the guest customer Adresses:

I get the the Billing and Shipping Adresses like this:

$order = $observer->getEvent()->getOrder();  
$billingAddress = $order->getBillingAddress(); 
$shippingAddress = $order->getShippingAddress();

And I want to save them to the guest customer.

How can I do it ?

Thanks a lot.

2

Please check below link for adding customer: http://inchoo.net/magento/programming-magento/programmaticaly-adding-new-customers-to-the-magento-store/

5
  • Thanks, I have already seen that link, is there any method to save directly the complete Shipping or BillingAdress in better method that setting each Address attribute alone like in the link ? Thanks – Bizboss Nov 4 '16 at 12:58
  • Hii, we can not set directly you need to assign the values of the field like see the below links: – Rajan Soni Nov 4 '16 at 13:05
  • Hi, see this link – Rajan Soni Nov 4 '16 at 13:07
  • I have already seen this link, it haven't worked for me – Bizboss Nov 4 '16 at 14:55
0

Please use this extension for that : https://www.magentocommerce.com/magento-connect/quick-register.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.