是.事实上非常容易:
$coupon = Mage::getModel('salesrule/coupon');
$coupon->load('SOMECOUPONCODE', 'code');
if($coupon->getId()) {
$timesUsed = $coupon->getTimesUsed();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3808 次 |
| 最近记录: |