@@ 743-746 (lines=4) @@ | ||
740 | */ |
|
741 | public function set_price($data,$id) { |
|
742 | //Price |
|
743 | if(isset($data['price']) && ''!== $data['price']){ |
|
744 | $price = preg_replace("/[^0-9,.]/", "", $data['price']); |
|
745 | $this->save_custom_field($price,'price',$id); |
|
746 | } |
|
747 | ||
748 | //Price includes |
|
749 | ||
@@ 765-769 (lines=5) @@ | ||
762 | * Set the duration |
|
763 | */ |
|
764 | public function set_duration($data,$id) { |
|
765 | if(isset($data['days']) && !empty($data['days'])){ |
|
766 | $price = $data['days']; |
|
767 | $price = preg_replace("/[^0-9,.]/", "", $price); |
|
768 | $this->save_custom_field($price,'duration',$id); |
|
769 | } |
|
770 | } |
|
771 | ||
772 |