Monday, 25 March 2019

Programmatically assign customer to a quote in magento

$customer = Mage::getModel('customer/customer')->load($userId);

$quote = Mage::getModel('sales/quote')->load($quoteId);
$quote->setCustomer($customer);
$quote->save();

No comments:

Post a Comment