Hello,

I actually work on a ecommerce website based on drupal. I use the ecommerce module to manage product and store.
What I need is to add rows on the cart view containing the VAT and shipping amount. I have tested flexicharge, but it only permit it on the checkout_review_form, I need the same for the cart_view_form. I know how to add it modifying the cart module, but I would prefer a cleanest method (using hooks ?). I have tried it with the hook_form_alter, but it seems it can't modify the cart table.

Does someone have any ideas ?

Thanks.

Comments

alwex’s picture

I have found how to do.

For those who are interested, I made it using a form_alter hook that redefine a the entirely cart table, integrating the flexicharge. After that, I mask the original cart using css.

I am still searching for a better solution than masking the cart with css, if anyone know how to do, please let me know.

Thanks

hawkeye217’s picture

I would be very interested to see your form_alter code... I am trying to do the same thing. I just want to see flexicharges show up on the cart view.

Unfortunately my client can't wait for ec4 to become stable, where this is supposedly fixed.