Magento产品的属性是一个非常重要的功能,我们经常会用到。在这篇文章中我将总结的一些产品属性信息的输出方法跟大家分享一下。 1、获取属性集合 $attribute = $_product->getResource()->getAttribute(‘attribute_code’); 2、获取属性类型 $attribute->getAttributeType(); 3、获取属性Label $attribute->getFrontendLabel(); 4、获取属性默认值 $attribute->getDefaultValue(); 5、获取属性设置值 $attribute->getFrontend()->getValue($_product); 6、检查属性是否可见 $attribute->getIsVisible(); 7、检查属性是否是必填项 $attribute->getIsRequired();(责任编辑:最模板) |

ecshop 运费查询 不同的地方
人气:2358
化妆品模板 ecshop化妆品网
人气:504
ecshop英文外贸高尔夫模板
人气:715
火红大气模板之shopex免费
人气:3884
ecshop女装商城模板
人气:480
ecshop精仿okbuy好乐买2012免
人气:3624