| $finalprice = 249; | $finalprice = 249; | ||||
| $total = number_format(249 * 2.5 + 50, 2); | $total = number_format(249 * 2.5 + 50, 2); | ||||
| } else{ | } else{ | ||||
| $total = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])) * 2.5 + 50, 2); | |||||
| $total = 1500; | |||||
| $finalprice = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])), 2); | $finalprice = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])), 2); | ||||
| } | } | ||||
| array_push($combineData, array( | array_push($combineData, array( | ||||
| 'package' => $d['package'], | 'package' => $d['package'], | ||||
| 'retail_price' => 'RM '.$finalprice, | 'retail_price' => 'RM '.$finalprice, | ||||
| 'incentives1' => '250% + RM50', | 'incentives1' => '250% + RM50', | ||||
| 'incentives2' => $d['incentives2'], | |||||
| 'incentives2' => '', | |||||
| 'total' => 'RM '.$total, | 'total' => 'RM '.$total, | ||||
| 'claim' => $d['claim'], | 'claim' => $d['claim'], | ||||
| )); | )); | ||||
| 'package' => $d['package'], | 'package' => $d['package'], | ||||
| 'retail_price' => 'RM '.$finalprice, | 'retail_price' => 'RM '.$finalprice, | ||||
| 'incentives1' => '250%', | 'incentives1' => '250%', | ||||
| 'incentives2' => $d['incentives2'], | |||||
| 'incentives2' => '', | |||||
| 'total' => 'RM '.$total, | 'total' => 'RM '.$total, | ||||
| 'claim' => $d['claim'], | 'claim' => $d['claim'], | ||||
| )); | )); |