public function dashboardForm()
 {
     $this->set('form', Core::make("helper/form"));
     $grouplist = StoreGroupList::getGroupList();
     $this->set("grouplist", $grouplist);
     $this->set("rewardType", StorePromotionRewardType::getByHandle('discount'));
 }
Пример #2
0
 public static function installPromotionRewardType($handle, $name, $pkg)
 {
     $promotionRewardType = StorePromotionRewardType::getByHandle($handle);
     if (!is_object($promotionRewardType)) {
         StorePromotionRewardType::add($handle, $name, $pkg);
     }
 }
 public function dashboardForm()
 {
     $this->set('form', Core::make("helper/form"));
     $this->set('productFinder', StoreProductFinder::renderProductSearchForm());
     $this->set("rewardType", StorePromotionRewardType::getByHandle('free_product'));
 }