GX-Bug #63075 » GiftCartFix.patch
src/GXMainComponents/Controllers/HttpView/ShopAjax/CartController.inc.php (date 1562144860000) | ||
---|---|---|
150 | 150 | |
151 | 151 |
return $this->actionDefault(); |
152 | 152 |
} |
153 | ||
153 |
|
|
154 |
|
|
155 |
/** |
|
156 |
* @return RedirectHttpControllerResponse |
|
157 |
* |
|
158 |
*/ |
|
159 |
public function actionUseBalance() |
|
160 |
{ |
|
161 |
$_SESSION['cot_gv'] = true; |
|
162 |
$shoppingCartUrl = xtc_href_link('shopping_cart.php'); |
|
163 |
return MainFactory::create('RedirectHttpControllerResponse', $shoppingCartUrl); |
|
164 |
} |
|
165 |
|
|
166 |
|
|
167 |
/** |
|
168 |
* @return RedirectHttpControllerResponse |
|
169 |
* |
|
170 |
*/ |
|
171 |
public function actionDoNotUseBalance() |
|
172 |
{ |
|
173 |
$_SESSION['cot_gv'] = false; |
|
174 |
$shoppingCartUrl = xtc_href_link('shopping_cart.php'); |
|
175 |
return MainFactory::create('RedirectHttpControllerResponse', $shoppingCartUrl); |
|
176 |
} |
|
177 |
|
|
154 | 178 | |
155 | 179 |
/** |
156 | 180 |
* @return JsonHttpControllerResponse |