Esempio n. 1
0
     <li class="head"><input type="checkbox" checkall /> Name</li>
     
     <div class="bulk_options">
     
     <button class="btn">Import all</button>
     
     </div>';
 $stores = array();
 $deal_types = \plugin\Popshop\inc\actions::listDealTypes();
 foreach ($links as $item) {
     // check first if this store is imported on your website
     $store = NULL;
     if (isset($stores[$item['merchant']])) {
         $store = $stores[$item['merchant']];
     } else {
         $store = \plugin\Popshop\inc\actions::check_store($item['merchant']);
         if ($store) {
             $stores[$item['merchant']] = $store;
         }
     }
     $store_imported = $store['storeID'] > 0;
     // check first if this coupon is imported on your website
     $coupon_imported = $item['couponID'] > 0;
     $deal_type = '';
     if ($item['deal_type'] != '') {
         $arrs = explode(",", $item['deal_type']);
         foreach ($arrs as $arr) {
             $deal_type .= '[' . $deal_types[$arr] . ']';
         }
     }
     echo '<li>