misc_helper |
Hello
I'm new to CodeIgniter, so go easy on me, we've had an ecommerce system built using version 2 which after going through the code the developer had created a misc_helper which is used to get the price and suggested selling price for an item, now my PHP skills are a lot to be desired to say the least, I'm more front end stuff and it is beyond me what is actually happening and why the developer has done it this way, and I can't get hold of him to ask him! Anyway in the view file we have the following line of code: Code: <p>Price: <?php $price = misc::display_price( $price, $user_no ); ?></p> Price £9.99 Suggested Selling Price £29.99 From what I can see is it's related to this helper code below, what I would like to do is separate the two prices, output's to the view file so I can move them around the page where I need them but for the live of me I can't figure out how to do it?? I have attached the misc_helper.php so you can see the full code of how it is made up. Code: static function display_price( $oprice, $user_no ) { Thanks in advance, I don't normally ask for this type of help, but to be honest I've tried every way I know with my small amount of php knowledge to no avail, and it's driving me nuts. misc_helper.php (Size: 4.39 KB / Downloads: 88) Cheers Malc |
Messages In This Thread |
misc_helper - by malbe - 02-24-2016, 06:42 AM
RE: misc_helper - by malbe - 02-25-2016, 02:26 AM
RE: misc_helper - by Narf - 02-25-2016, 02:43 AM
RE: misc_helper - by solidcodes - 02-25-2016, 03:09 AM
RE: misc_helper - by solidcodes - 02-25-2016, 03:22 AM
RE: misc_helper - by malbe - 02-25-2016, 03:58 AM
RE: misc_helper - by Diederik - 02-25-2016, 04:33 AM
RE: misc_helper - by malbe - 02-25-2016, 04:48 AM
RE: misc_helper - by solidcodes - 02-25-2016, 05:11 AM
RE: misc_helper - by Diederik - 02-25-2016, 05:38 AM
RE: misc_helper - by solidcodes - 02-25-2016, 06:09 AM
RE: misc_helper - by malbe - 02-26-2016, 08:15 AM
|