Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $items=$order->getAllVisibleItems();
  2. foreach ($items as $id=>$item){
  3. $product = Mage::getModel('catalog/product')->load($item->getProductId());
  4. $selectedAttributes = ???
  5. ...
  6. }
  7.  
  8. $options = $item->getProductOptions();
  9. $option_xml = '';
  10. if(is_array($options) && is_array($options['options']) && !empty($options['options'])){
  11. foreach ($options['options'] as $op){
  12. //2Do with $op['option_id'], $op['label'], $op['option_value'], $op['value']
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement