I have updated the code. The variables are added in the template preprocess, ...

Contribution Date
Technology
Contribution Project
Contribution Details

I have updated the code. The variables are added in the template preprocess, and you can easily override them in your custom theme preprocess, and the template now handles the rendering of cart block. In dc_ajax_add_cart.module you will find this:

function template_preprocess_dc_ajax_shopping_cart(&$variables) { ... $variables['products_list']['row'][$line_item->line_item_id]['price'] = array( 'data' => $product_prices[$product->product_id], 'field_classes' => 'price', ); ... }

In your custom theme preprocess you just have to change its value, just multiply the price with quantity, you will get the data in $variables.

Contribution Author
Files count
0
Patches count
0