<?php
/**
* ---------------------------------------------------------------------------------
*
* This file is part of the 'giftonordermodule' module feature (main || related module)
* Developped for Prestashop platform.
* You are not allowed to use it on several site
* You are not allowed to redistribute this module
* This header must not be removed
*
* @category  giftonordermodule
* @author    OleaCorner <contact@oleacorner.com> <www.oleacorner.com>
* @copyright OleaCorner
* @version   4.3
* @license   XXX
*         
* ---------------------------------------------------------------------------------
*/
class CartController extends CartControllerCore
{
	/*
    * module: giftonordermodule
    * date: 2017-02-24 15:46:17
    * version: 5.0.7
    */
    protected function processChangeProductInCart()
	{
		parent::processChangeProductInCart ();
		
		Hook::exec ('cartRefreshForGift');
		
	}
	/*
    * module: giftonordermodule
    * date: 2017-02-24 15:46:17
    * version: 5.0.7
    */
    protected function processDeleteProductInCart()
	{
		parent::processDeleteProductInCart ();
		
		Hook::exec ('cartRefreshForGift');
		
	}
	
	
	/*
    * module: giftonordermodule
    * date: 2017-02-24 15:46:17
    * version: 5.0.7
    */
    public function oleaSetAjaxrefresh($val)
	{
		$this->ajax_refresh = (bool)$val;
	}
	
}
		