I am I have this cart was trying to make me and I got a sample setup that someone else developed I've been able to modify what I want to do for the most part. Is
My problem is that when you "add to cart" instead of creating a new line / example, it updates the amount of the specific object I need to create a new line, do not update the quantity of an item (because of my extensive modifications, you do not select)
No doubt things / color / size / material etc. before "add to cart" that it I have what There is a simple revision for the organization, but all its attempts to gain this right have failed. But under the simplified version of what is happening:
list ($ action) {case "add": $ _SESSION [ 'cart'] [$ product_id] ++; break; } If ($ _ SESSION [ 'cart']) {foreach ($ _ session [ 'cart'] $ product_id = & gt; $ amounts as) {$ sql = sprintf ( "Choose a title, description, shoes and boots Where id =% d; ", $ Product_id); $ Result = mysql_query ($ sql); If (mysql_num_rows ($ result)> 0) {list ($ title, $ description, $ value) = mysql_fetch_row ($ result); $ Line_cost = $ value * $ quantity; $ Total = $ total + $ line_cost; Axo "$ heading
$ quantity
This will create a new line, but I do not even know You are
switch ($ verb) {case "add": $ _SESSION ['cart'] [$ product_id] []; break; }
No comments:
Post a Comment