kerbdog Posted February 19, 2011 Share Posted February 19, 2011 Hi I need assistance in finding the code to produce a total of all the subtotals in my shopping cart. Not sure how to assign an attribute to the table cell because a new row is generated each time a customer adds to cart. Attached is a pdf of a screenshot and script for the cart. Thanks [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/228188-total-of-subtotals-help/ Share on other sites More sharing options...
ignace Posted February 19, 2011 Share Posted February 19, 2011 Derived from your code: $total += $_SESSION['itemqty'][$key] * $_SESSION['itemprice'][$key] Quote Link to comment https://forums.phpfreaks.com/topic/228188-total-of-subtotals-help/#findComment-1176851 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.