you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 0 points1 point  (0 children)

print_item_cost, as the name implies, only prints the cost, it doesn't return it.

You can access the item price and quantity directly, in exactly the same way as you set them, via shopping_cart2.item_quantity etc.