예제 #1
0
     $mold->pm_set_mold_stock($_POST['mold_stock']);
 }
 // MOLD SKU
 if (isset($_POST['mold_sku'])) {
     $mold->pm_set_mold_sku($_POST['mold_sku']);
 }
 // MOLD IS ACTIVE
 if (isset($_POST['is_active'])) {
     $mold->pm_set_mold_is_active($_POST['is_active']);
 }
 if (isset($_POST['is_not_active'])) {
     $mold->pm_set_mold_is_active($_POST['is_not_active']);
 }
 // MOLD IS VIRTUAL
 if (isset($_POST['is_virtual'])) {
     $mold->pm_set_mold_is_virtual($_POST['is_virtual']);
 }
 if (isset($_POST['is_not_virtual'])) {
     $mold->pm_set_mold_is_virtual($_POST['is_not_virtual']);
 }
 // MOLD IS DOWNLOADABLE
 if (isset($_POST['is_downloadable'])) {
     $mold->pm_set_mold_is_downloadable($_POST['is_downloadable']);
     // MOLD FILE PATHS
     if (isset($_POST['file_paths']) && !empty($_POST['file_paths'])) {
         $paths = explode(",", $_POST['file_paths']);
         if (empty($paths[0])) {
             unset($paths[0]);
         }
         $mold->pm_set_mold_file_paths($paths);
     }