airdee Posted November 14, 2006 Share Posted November 14, 2006 hi all! i got this shopping cart class script from another website. the cart prints individually like this:[code=php:0]$obj_cart->add_itemsToCart($pcode,$pname,$price);$obj_cart->add_itemsToCart($pcode,$pname,$price);$obj_cart->add_itemsToCart($pcode,$pname,$price);....and so on [/code]Sample Output:1. 001 Tootsie Roll $.552. 005 Marsh Mallow $.353. 010 White Rabbit $.55...and so on.I want to print the items dynamically like using an array or so []. That when a user click the 'add to cart link', the cart will get updated each time the link is clicked. How can I make it dynamically? Thanks for any help you can give me! Link to comment https://forums.phpfreaks.com/topic/27193-help-on-shopping-cart-class/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.