Answers for "magento 1.9 update table where condition"

0

magento 1.9 update table where condition

$where = [];
$where[] = $write->quoteInto('request_type=?',$request_type);
$where[] = $write->quoteInto('shipping_id =?', $shipping_id);
$where[] = $write->quoteInto('status =?', 0);
$write->update('freeze_requests'
	,['status'=>1
	,'approved_by'=>$userId
	,'approved_on'=>Mage::getModel('core/date')->gmtDate('Y-m-d H:i:s')]
	,$where
);
Posted by: Guest on May-31-2020

Code answers related to "magento 1.9 update table where condition"

Browse Popular Code Answers by Language