Révision b858700c
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/commerce/modules/cart/includes/commerce_cart.checkout_pane.inc | ||
---|---|---|
55 | 55 |
function commerce_cart_contents_pane_checkout_form($form, &$form_state, $checkout_pane, $order) { |
56 | 56 |
$pane_form = array(); |
57 | 57 |
|
58 |
drupal_add_css(drupal_get_path('module', 'commerce_cart') . '/theme/commerce_cart.theme.css'); |
|
59 |
|
|
60 | 58 |
// Extract the View and display keys from the cart contents pane setting. |
61 | 59 |
list($view_id, $display_id) = explode('|', variable_get('commerce_cart_contents_pane_view', 'commerce_cart_summary|default')); |
62 | 60 |
|
... | ... | |
64 | 62 |
'#markup' => commerce_embed_view($view_id, $display_id, array($order->order_id)), |
65 | 63 |
); |
66 | 64 |
|
65 |
// Attach the Cart and Price module CSS to accommodate the order total area |
|
66 |
// handler's CSS being reloaded properly on a form rebuild. |
|
67 |
$pane_form['cart_contents_views']['#attached']['css'][] = drupal_get_path('module', 'commerce_cart') . '/theme/commerce_cart.theme.css'; |
|
68 |
$pane_form['cart_contents_views']['#attached']['css'][] = drupal_get_path('module', 'commerce_price') . '/theme/commerce_price.theme.css'; |
|
69 |
|
|
67 | 70 |
return $pane_form; |
68 | 71 |
} |
69 | 72 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules