I created a presta module and use the actionCartSave hook. But when I print string in hookActionCartSave function, it display double result I dont know why, can you explain for me that?
My code:
public function hookActionCartSave()
{
if (!$this->active || !Validate::isLoadedObject($this->context->cart) || !Tools::getIsset('id_product')) return;
print_r('expression');
}
The result is:
expressionexpression
Thank you