I have create a Model and for some development i had to implement Update
method. It is very easy. I also try for conditional update. But i am
using the following code which will fulfill your requirement for
conditional update.
foreach($cart as $item_id=>$item){
$olddata_id
= Mage::getModel('custom/csaabandonedcart')->getCollection()
->addFieldToFilter('csa_id',
Mage::getSingleton('customer/session')->getCustomerId())
->addFieldToFilter('customer_id',
$retailer)->addFieldToFilter('product_id', $item_id)
->getColumnValues('id');
$abandonedcart
= Mage::getModel('custom/csaabandonedcart')->load($olddata_id[0]);
$abandonedcart->setQuantity($item['qty']);
$abandonedcart->save();
}
Your post urges me to create a business website, of course I will free download magento as soon as possible. Magento is truly the best platform ever. Its extensions is also awesome. Thank you.
ReplyDeleteDont forget new extension Magento banner slider extension. It is the best
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteNice to read this article... Thanks for sharing.....
ReplyDeletemagento 2 training
This comment has been removed by the author.
ReplyDeleteThanks for sharing such useful post.
ReplyDeleteAngularjs development company
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.Professional Web design services are provided by W3BMINDS- Website designer in Lucknow.
ReplyDeleteWeb development Company | Web design company
Such a great and most useful information for me! I appreciate this post so much. I save all information and code separatelyy. Thanks for sharing it. Pubg Tournament App Development
ReplyDeleteI read your blog and found it to be pretty instructive. I would like to thank you for sharing an amazing article here.
ReplyDeleteKingston Jamaica Homes For Sale