Can you Clone a collection row in Magento? -


i'm trying build custom grid in magento, have row every product ordered including qty. example, if customer ordered 3 of specific product - need have 3 rows have matching details. possible?

this custom product each row represents manufacturing run. i'm not looking code examples, i'm not sure if can sql style collection process? or if need modify query , loop through once i've colelcted data database?

thanks

instead of showing product order item grid, added export xml button. then, in grid modified "_exportiteratecollection" method following:

        foreach ($collection $item) {             for($i = 0; $i < $item->getqtyordered(); $i++ ){                 call_user_func_array(array($this, $callback), array_merge(array($item), $args));             }         } 

hope helps future questions!


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -