function commerce_cart_preprocess_views_view in Commerce Core 8.2
Same name and namespace in other branches
- 7 modules/cart/commerce_cart.module \commerce_cart_preprocess_views_view()
Implements hook_preprocess_views_view().
Moves the commerce_cart_form footer output above the submit buttons.
File
- modules/
cart/ commerce_cart.module, line 61 - Implements the shopping cart system and add to cart features.
Code
function commerce_cart_preprocess_views_view(&$variables) {
$view = $variables['view'];
if (strpos($view->storage
->get('tag'), 'commerce_cart_form') !== FALSE) {
$variables['rows']['footer'] = $variables['footer'];
$variables['footer'] = '';
}
}