[thelist] PHP Doubling up

Andrew Maynes andrew at humanbehaviour.co.uk
Wed Aug 14 09:10:01 CDT 2002


nope :( still doubling the first items sub total as soon as another item is
added to the cart.

as long as there is only one item the quantities can be changed as many times,
it is as soon as another item is added.


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Jay Blanchard
Sent: Wednesday, August 14, 2002 02:59
To: thelist at lists.evolt.org
Subject: RE: [thelist] PHP Doubling up


[snip]
Rich are you just saying take out the second $total ?
[/snip]

I think he is saying change this;

$total += $total + ($cart[$item][qty] * $cart[$item][unit_price]);

to this

$total += ($cart[$item][qty] * $cart[$item][unit_price]);

Yep, I should have looked more closely, but this appears it could be the
problem.

Jay


--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02




More information about the thelist mailing list