File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
app/code/Magento/Checkout/Controller Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ protected function getBackUrl($defaultUrl = null)
131
131
/**
132
132
* @return bool
133
133
*/
134
- protected function shouldRedirectToCart ()
134
+ private function shouldRedirectToCart ()
135
135
{
136
136
return $ this ->_scopeConfig ->isSetFlag (
137
137
'checkout/cart/redirect_to_cart ' ,
Original file line number Diff line number Diff line change @@ -205,4 +205,15 @@ private function getCartUrl()
205
205
{
206
206
return $ this ->_url ->getUrl ('checkout/cart ' , ['_secure ' => true ]);
207
207
}
208
+
209
+ /**
210
+ * @return bool
211
+ */
212
+ private function shouldRedirectToCart ()
213
+ {
214
+ return $ this ->_scopeConfig ->isSetFlag (
215
+ 'checkout/cart/redirect_to_cart ' ,
216
+ \Magento \Store \Model \ScopeInterface::SCOPE_STORE
217
+ );
218
+ }
208
219
}
You can’t perform that action at this time.
0 commit comments