How to add a remove item function in the Shopping cart block menu?

Events happening in the community are now at Drupal community events on www.drupal.org.
superpanda's picture

Hi guys,

Instead of removing items inside the shopping cart page, is it possible to remove items directing from the 'block' menu?

Here's how it would look in the block menu.

3 Items in Your cart

X Item one $1
X Item two $2
X Item Three $3


Total: $6

X = Remove item link or button.

Any help would be appreciated.

Sam

Comments

Can you override the theme function for the block

drew reece's picture

Just a thought…

Can you copy the them function for the cart to your theme/template.php and override the theme_cart_display_block() function? (in ecommerce/cart.cart.module)

Start by copying the whole function code into the template.php and then change the function name to phptemplate_theme_cart_display_block()

Hack away at the code until done.

Drew

e-Commerce Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: