working on it ...

Filters

Explore Public Snippets

Sort by

Found 2 snippets matching: quote_item

    public by shebin512 modified Jan 6, 2017  1889  2  5  0

    Magento 1.x Update single Quote Item

    Update a single quote Item in magento 1.x
    <?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);
                                        

    external by killerswan modified Jul 26, 2014  292  0  3  0

    An error on mismatched visibility when (perhaps) misusing `quote_item!`

    An error on mismatched visibility when (perhaps) misusing `quote_item!`: gistfile1.txt
    ovid $ git ll -1 --oneline
    * b197f03 (HEAD, master) cleanup
    ovid $ 
    ovid $ git diff
    ovid $ 
    ovid $ ./build.sh 
    provide_csv_given_labels: name:   MyCSV
    provide_csv_given_labels: path:   ./sample1.txt
    provide_csv_given_labels: labels: Verse
    Parsing given labels...
    Defining items in the CSV provider...
    CSVSample.rs:45:7: 45:60 error: unmatched visibility `pub`
    CSVSample.rs:45       ProvideCSV_labels!("MyCSV", "./sample1.txt", "Verse")
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    

    List Complete ( 2 snippets total )

    Cannot find what you were looking for?
    Ask the Snip2Code Community

    • Public Snippets
    • Channels Snippets