|
@@ 781-784 (lines=4) @@
|
| 778 |
|
*/ |
| 779 |
|
public function set_price($data,$id) { |
| 780 |
|
//Price |
| 781 |
|
if(isset($data['price']) && ''!== $data['price']){ |
| 782 |
|
$price = preg_replace("/[^0-9,.]/", "", $data['price']); |
| 783 |
|
$this->save_custom_field($price,'price',$id); |
| 784 |
|
} |
| 785 |
|
|
| 786 |
|
//Price includes |
| 787 |
|
if(isset($data['price_includes']) && ''!== $data['price_includes']){ |
|
@@ 802-806 (lines=5) @@
|
| 799 |
|
* Set the duration |
| 800 |
|
*/ |
| 801 |
|
public function set_duration($data,$id) { |
| 802 |
|
if(isset($data['days']) && !empty($data['days'])){ |
| 803 |
|
$price = $data['days']; |
| 804 |
|
$price = preg_replace("/[^0-9,.]/", "", $price); |
| 805 |
|
$this->save_custom_field($price,'duration',$id); |
| 806 |
|
} |
| 807 |
|
} |
| 808 |
|
|
| 809 |
|
/** |