We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 610ff49 commit bde8300Copy full SHA for bde8300
1 file changed
modules/order/commerce_order.module
@@ -110,6 +110,17 @@ function commerce_order_theme_suggestions_commerce_order(array $variables) {
110
return _commerce_entity_theme_suggestions('commerce_order', $variables);
111
}
112
113
+/**
114
+ * Implements hook_theme_suggestions_commerce_order_receipt().
115
+ */
116
+function commerce_order_theme_suggestions_commerce_order_receipt(array $variables) {
117
+ if (isset($variables['order_entity'])) {
118
+ $order = $variables['order_entity'];
119
+ $original = $variables['theme_hook_original'];
120
+ $variables['theme_hook_suggestions'][] = $original . '__' . $order->bundle();
121
+ }
122
+}
123
+
124
/**
125
* Adds the default order_items field to an order type.
126
*
0 commit comments