/** * Format and set the price for this app. * * @param string * * @return void */ public function setPrice($price) { if (!empty($price)) { $price = trim(strtolower($price)); $price = str_replace('$', '', $price); $price = trim($price); parent::setPrice($price); } }
/** * Format and set the price for this app. * * @param string * * @return void */ public function setPrice($price) { if (!empty($price)) { $price = trim(strtolower($price)); if ($price == 'install') { $price = '0.00'; } else { $price = str_replace('buy', '', $price); $price = str_replace('$', '', $price); $price = trim($price); } parent::setPrice($price); } }