finalized styling of checkout order informations page
This commit is contained in:
@@ -165,6 +165,25 @@ function materiotheme_theme_suggestions_field_alter(&$suggestions, &$vars){
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares variables for product templates.
|
||||
*
|
||||
* Default template: commerce-product.html.twig.
|
||||
*
|
||||
* @param array $variables
|
||||
* An associative array containing:
|
||||
* - elements: An associative array containing rendered fields.
|
||||
* - attributes: HTML attributes for the containing element.
|
||||
*/
|
||||
function materiotheme_preprocess_commerce_product(array &$variables) {
|
||||
$test="test";
|
||||
// remove the variation as we already display it via views
|
||||
if($variables['elements']['#view_mode'] === 'order_summary'){
|
||||
unset($variables['product']['variation_title']);
|
||||
unset($variables['product']['variation_field_description']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_theme_suggestions_commerce_product_variation().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user