File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/code/Meta/Sales/Controller/Checkout Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ public function execute()
171
171
$ externalBusinessId = $ this ->httpRequest ->getParam ('external_business_id ' );
172
172
$ products = explode (', ' , $ this ->httpRequest ->getParam ('products ' ));
173
173
$ coupon = $ this ->httpRequest ->getParam ('coupon ' );
174
+ $ redirect = $ this ->httpRequest ->getParam ('redirect ' );
174
175
$ signature = $ this ->httpRequest ->getParam ('signature ' );
175
176
176
177
$ storeId = $ this ->orderHelper ->getStoreIdByExternalBusinessId ($ externalBusinessId );
@@ -283,10 +284,14 @@ public function execute()
283
284
}
284
285
}
285
286
286
- // Redirect to checkout
287
+ // Redirect to indicated path or checkout
287
288
$ this ->checkoutSession ->replaceQuote ($ quote );
288
289
$ resultRedirect = $ this ->resultRedirectFactory ->create ();
289
- $ resultRedirect ->setPath ('checkout ' );
290
+ if ($ redirect ) {
291
+ $ resultRedirect ->setPath ($ redirect );
292
+ } else {
293
+ $ resultRedirect ->setPath ('checkout ' );
294
+ }
290
295
291
296
return $ resultRedirect ;
292
297
}
You can’t perform that action at this time.
0 commit comments