예제 #1
0
 // SALE IS PERCENT
 if (isset($_POST['sale_price_is_percent'])) {
     $mold->pm_set_mold_sale_price_is_percent($_POST['sale_price_is_percent']);
 }
 // SALE DATES FROM TO
 if (isset($_POST['sale_price_dates_from'])) {
     $dates_from = strtotime($_POST['sale_price_dates_from']);
     $mold->pm_set_mold_sale_price_dates_from($dates_from);
 }
 if (isset($_POST['sale_price_dates_to'])) {
     $dates_to = strtotime($_POST['sale_price_dates_to']);
     $mold->pm_set_mold_sale_price_dates_to($dates_to);
 }
 // WEIGHT
 if (isset($_POST['mold_weight'])) {
     $mold->pm_set_mold_weight($_POST['mold_weight']);
 }
 // LENGTH
 if (isset($_POST['mold_length'])) {
     $mold->pm_set_mold_length($_POST['mold_length']);
 }
 // WIDTH
 if (isset($_POST['mold_width'])) {
     $mold->pm_set_mold_width($_POST['mold_width']);
 }
 // HEIGHT
 if (isset($_POST['mold_height'])) {
     $mold->pm_set_mold_height($_POST['mold_height']);
 }
 // SHIPPING CLASS
 if (isset($_POST['mold_shipping_class'])) {