public function set(array $product_ids)
    {
        $lifespan = $this->getCookieLifespan();
        $result = $this->request->setCookie('product_compare', implode('|', (array) $product_ids), $lifespan);

        gplcart_static_clear();
        return $result;
    }
public function set(array $product_ids)
    {
        $lifespan = $this->getCookieLifespan();
        $result = $this->request->setCookie('product_compare', implode('|', (array) $product_ids), $lifespan);

        gplcart_static_clear();
        return $result;
    }
public function set ( array $ product_ids ) { $ lifespan = $ this -> getCookieLifespan ( ) ; $ result = $ this -> request -> setCookie ( 'product_compare' , implode ( '|' , ( array ) $ product_ids ) , $ lifespan ) ; gplcart_static_clear ( ) ; return $ result ; }
Saves an array of product ID in cookie
@param array $product_ids
@return boolean
Saves an array of product ID in cookie