Jump to content

help on shopping cart class


airdee

Recommended Posts

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    $.55
2. 005    Marsh Mallow  $.35
3. 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.