Welcome, Guest
Username: Password: Remember me

TOPIC: showing the contents of the cart

showing the contents of the cart 10 years 2 months ago #2001

  • Trupod
  • Trupod's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Is there a way to have the cart module list the cart's contents rather than just the item count and total price?

Also: Is there any way for the buyer to remove one item from the cart? (i.e., before going to PayPal)

BTW, I attach for sharing (if you permit) my modified version of the cart's helper file. I changed one line to
add CSS classes to enable more flexible styling of the cart module*,
and
to add a ternary operator to the return statement to distinguish between "item" and "items". (So the cart module no longer says "1 items". It says "1 item" or "2 items". )

(The purpose of the new CSS class is to allow me to make just the number gigantic, so users will have some feedback when they click "add to cart". )

Search for "JLW" to find the changed line of code.
The administrator has disabled public write access.
Time to create page: 0.124 seconds