allow possibility for payment module to return a response

This commit is contained in:
Manuel Raynaud
2014-02-06 12:24:52 +01:00
parent c52ec3dbaf
commit a6f0a38a7b
7 changed files with 87 additions and 33 deletions

View File

@@ -135,7 +135,12 @@ trait CartTrait
$id = null;
if (ConfigQuery::read("cart.session_only", 0) == 0) {
$id = uniqid('', true);
setcookie("thelia_cart", $id, time()+ConfigQuery::read("cart.cookie_lifetime", 60*60*24*365));
setcookie(
"thelia_cart",
$id,
time()+ConfigQuery::read("cart.cookie_lifetime", 60*60*24*365),
'/'
);
}