Created
September 15, 2012 18:24
-
-
Save danreb/3729172 to your computer and use it in GitHub Desktop.
Override the Drupal Commerce cart summary using the theme preprocess function in either module or theme.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Implementation of hook_preprocess_commerce_line_item_summary | |
* | |
*/ | |
// Replace the name of the hook with your theme or module name. | |
function HOOK_preprocess_commerce_line_item_summary(&$variables) { | |
// Replace the label ( default to Total ) with your own label | |
$variables['total_label'] = t('My New Label'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a code snippet for overriding defaults in Drupal commerce