unstabledreamer Posted May 1, 2009 Share Posted May 1, 2009 So i am using Oscommerce and i just installed an application to do a discount for my customers. If you are familiar with oscommerce the application was easy discount. I need two tiny peices of php code i cannot write php but i can put it in english. First i need to have this peice of code that says ( if order total before tax and shipping is applied is greater than 150.00 then minus 25.00 off total orde then add tax ad shipping) if tax and shipping is a problem it doesnt matter Second i need one with a code that says ( if code value equal true then minus 10% from total order) any help would be great thank you. Link to comment https://forums.phpfreaks.com/topic/156431-new-to-the-board-and-php-any-help-would-be-appreciated/ Share on other sites More sharing options...
jackpf Posted May 1, 2009 Share Posted May 1, 2009 if($ordertotal > 150) { $ordertotal -= 25; } //and if($code === true) { $ordertotal = $ordertotal * 0.9; } Obviously you will need to sub in your values. I'd recommend looking up a PHP tutorial though tbh. Link to comment https://forums.phpfreaks.com/topic/156431-new-to-the-board-and-php-any-help-would-be-appreciated/#findComment-823681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.