Exemplo n.º 1
0
 public static function copyProduct()
 {
     $result = array();
     $copied = lC_Products_Admin::copy($_GET['pid'], $_GET['new_category_id'], $_GET['copy_as']);
     if ($copied) {
         $result['rpcStatus'] = RPC_STATUS_SUCCESS;
     }
     echo json_encode($result);
 }
Exemplo n.º 2
0
 public static function batchCopy($batch, $new_category_id, $type)
 {
     foreach ($batch as $id) {
         lC_Products_Admin::copy($id, $new_category_id, $type);
     }
     return true;
 }