by
0
5
1,847
2
Top 1% !
Famous
Tagged
Specified
OpenSource
Popularity: 10222nd place
Created
Modified Jan 6, 2017

Published on:

FrameworkMagento
Languagephp
LicenseMIT_X11

Magento 1.x Update single Quote Item

Update a single quote Item in magento 1.x
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1612999/Magento-1-x-Update-single-Quote-Item?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
<?php // Update single quote Item/s qty/data. // Step 1 : Load the quote object. This can be done in variety of ways depending on the location and usage. $quoteId=1; $itemId = 1234;// Items Id $quote = Mage::getModel('sales/quote')->setStore($store)->load($quoteId); // Step 2 : set the quote object qty manually // prepare data. $params = array(); $params['qty'] = 5;// similarly you can set any item attribute. $request = new Varien_Object($params); // set Data. $quote->updateItem($itemId,$request);
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus