Commit 5c45888d authored by Gregory Roussac's avatar Gregory Roussac

Merge pull request #2388 from guestisp/add-displayCartSummary-hook

[*] FO : Fix #PSCSX-4382:  Add hook to customize cart summary
parents bd51e5fe 590d6c15
......@@ -3038,7 +3038,7 @@ class CartCore extends ObjectModel
if ($cart_rule['value_real'] == 0)
unset($cart_rules[$key]);
return array(
$summary = array(
'delivery' => $delivery,
'delivery_state' => State::getNameById($delivery->id_state),
'invoice' => $invoice,
......@@ -3063,6 +3063,12 @@ class CartCore extends ObjectModel
'free_ship' => $total_shipping ? 0 : 1,
'carrier' => new Carrier($this->id_carrier, $id_lang),
);
$hook = Hook::exec('actionCartSummary', $summary, null, true);
if (is_array($hook))
$summary = array_merge($summary, array_shift($hook));
return $summary;
}
public function checkQuantities($return_product = false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment