|
|
 |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0  | This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

July 8th, 2008, 10:39 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Location: Wyoming, MI, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Problem with Extended price over $1,000.00
I'm having a problem with the E-Commerce chapter. Everything works fine except when the extended price for an item goes over $1,000.00. The total at the bottom is in error. If I change the quantity so the extended total is below $1,000.00 everything works fine.
Any Ideas
Thanks
JD Bennett
|

July 8th, 2008, 01:04 PM
|
|
Registered User
|
|
Join Date: Jul 2004
Location: Wyoming, MI, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hey I found the fix. You need to get rid of the commas in the extended price. Do this by changing the code in the cart.php file and the checkout2.php file and checkout3.php file. Find the line of code for the extended price. It looks like this:
$extprice = number_format($costPrice * $qty, 2);
change it to this:
$extprice = number_format($costPrice * $qty, 2, '.', '');
What this does is remove the comma in the extended price. Which fixes the addition for the "total before shipping".
Yeah I fixed it myself. Google is a wonderful thing!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |