Jimbo123 Posted March 4, 2013 Share Posted March 4, 2013 Hi, My workplace have bought a script to run our online car sales (www.woodleighcars.co.uk), and I've been given the thankless task of setting it up because I know a bit of html! I've managed to get most of it done but am now pulling my hair out. The seller won't help. On each advert there's an option to "Print Page" and all I want to do is when you select the print option and the printable page appears, its to move the "Price" field from the specifications table, next to the cars title at the top of the advert. I'll be honest, I've tried everything and my heads spinning. Can anyone help? flyer.php view.php Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/ Share on other sites More sharing options...
GuitarGod Posted March 4, 2013 Share Posted March 4, 2013 (edited) If I understand correctly, "flyer.php" if your printable page. Open this page and go to line 151 and DELETE it: "$frontend_labels[PRICE]" => "$default_currency$thou_sep", This will remove the price for appearing if your specifications table. Now to add it to the title. Go to line 84, you'll find: <h1>$row_array[1]</h1> REPLACE it with: <h1>$row_array[1] $default_currency$thou_sep</h1> Lastly, CUT line 137 $thou_sep = number_format($row_array[14]); and PASTE it on line 81 (just above print ") As you move code about, the line numbers above may change very slightly, so I've included the relevant code to look for. Edited March 4, 2013 by GuitarGod Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/#findComment-1416452 Share on other sites More sharing options...
Jimbo123 Posted March 4, 2013 Author Share Posted March 4, 2013 Genius, worked a treat! Thankyou SO much you've really helped me :-) Guess I need to learn some php basics. Any idea where a good place to start would be? Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/#findComment-1416455 Share on other sites More sharing options...
GuitarGod Posted March 4, 2013 Share Posted March 4, 2013 Glad to help When I first started to learn PHP, this site really helped (http://www.xentrik.net/php) as it went through all the basic. Good luck! Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/#findComment-1416463 Share on other sites More sharing options...
Christian F. Posted March 4, 2013 Share Posted March 4, 2013 I would not recommend following that site: The tutorials on it are out of date, and completely open for all kinds of security attacks. Instead you should be using the PHP: The Right way site. Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/#findComment-1416526 Share on other sites More sharing options...
GuitarGod Posted March 4, 2013 Share Posted March 4, 2013 I would not recommend following that site: The tutorials on it are out of date, and completely open for all kinds of security attacks. Instead you should be using the PHP: The Right way site. Quite right, my apologies. I should have checked that the information on the site was updated and relevant. As you pointed out, it isn't. Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/#findComment-1416580 Share on other sites More sharing options...
Christian F. Posted March 5, 2013 Share Posted March 5, 2013 Crap, seems like my links were a bit mangled. What I meant to say that the PHP manual and the PHP: The Right way site were two of the resources you should follow. Quote Link to comment https://forums.phpfreaks.com/topic/275220-newbie-need-to-move-a-field-in-script-ive-bought-help/#findComment-1416692 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.