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] 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] Link to comment https://forums.phpfreaks.com/topic/228188-total-of-subtotals-help/#findComment-1176851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.