$quoteA = Mage::getModel('sales/quote')->load($quoteId);
$quoteB = Mage::getModel('sales/quote')->load($userQuoteId);
$quoteB->merge($quoteA);
$quoteA->delete();
$quoteA->collectTotals()->save();
$quoteB->collectTotals()->save();
$quoteB = Mage::getModel('sales/quote')->load($userQuoteId);
$quoteB->merge($quoteA);
$quoteA->delete();
$quoteA->collectTotals()->save();
$quoteB->collectTotals()->save();
No comments:
Post a Comment