foreach ($order_items as $oi) { $_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $oi->getSku()); $_product = Mage::getModel('catalog/product')->load($_product->getId()); if ($_product->getTypeId() == 'bundle') { $options = $oi->getProductOptions(); $optionIds = array_keys($options['info_buyRequest']['bundle_option']); $selectionCollection = $_product->getTypeInstance(true)->getSelectionsCollection( $_product->getTypeInstance(true)->getOptionsIds($_product), $_product ); $selected_skus = '' ; foreach($selectionCollection as $option) { if( in_array($option->getData('option_id'), $optionIds)) { $selected_skus .= $option->getSku() . ',' ; } } echo $selected_skus ; } }
相关推荐
Magento Order Export
magento入门原版书.。。The Definitive Guide to Magento.pdf
Apress.The.Definitive.Guide.to.Magento.Dec.2009.pdf Apress于2009重磅推出的Magento上手书籍,原书地址:http://www.apress.com/book/view/9781430272298
You’ll start by getting a general understanding of what Magento is, why and how you should use it, and whether it is possible and feasible to migrate from an old web store to Magento 2. As you work ...
Magento 2 is installable only via the command-line interface for an experienced webmaster. Chapter 2, Magento 2 System Tools, explains how to install Magento 2 via the command shell. Magento released ...
Get a detailed insight into the structure of Magento Learn about event/observer-driven modules Get a hands-on introduction to custom shipping and payment methods ☆ 出版信息:☆ [作者信息] Branko ...
Magento 2 is installable only via the command-line interface for an experienced webmaster. Chapter 2, Magento 2 System Tools, explains how to install Magento 2 via the command shell. Magento released ...
magento数据结构分析 magento数据字典
magik shoes magento 模板, magento 1.7 模板
Magento的sales模块算是模块里面关联度比较大的,checkout模块的下订单流程也写得让人一头雾水,附件里主要是用客户对象和产品sku+数量的数组生成订单的函数,内容不多,但是可是找了不少时间,希望能帮到正在攻克...
magento的SMTP插件magento的SMTP插件magento的SMTP插件
深入理解Magento 由精东博客下载下来制作成pdf
Magento插件开发手册 Magento Extension Developers Guide
Athlete Magento主题,兼容Magento 1.9.x, 1.8.x, 1.7.x ,特点:完全自适应(响应式布局),自定义子主题,无限颜色,完全自定义,一键安装演示,小工具化横幅系统,颜色选择,MEGA菜单,多商店支持,自定义产品...
Magento Magento商城 Magento目录结构
magento2 developers cookbook, magento 开发手册,magento教程
主要包括的内容有:magento的常用设置、Magento模板制作教程、Magento商城_目录结构说明、Magento中文教程实用文档、常用的xml的文件的作用以及自定义模块的应用
magento插件