Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Jan 26, 2022
1 parent 7ef4339 commit f017cbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -15,7 +15,6 @@ class CheckoutV2
*/
public function handle($request, Closure $next)
{

$checkCart = cart_get_items_count();

if (!$checkCart) {
Expand Down
6 changes: 5 additions & 1 deletion src/MicroweberPackages/Checkout/routes/web.php
Expand Up @@ -3,7 +3,11 @@
// Private
Route::name('checkout.')
// ->prefix(multilanguage_route_prefix('checkout'))
->middleware([\MicroweberPackages\App\Http\Middleware\VerifyCsrfToken::class, \MicroweberPackages\Checkout\Http\Middleware\CheckoutV2::class])
->middleware([
\MicroweberPackages\App\Http\Middleware\VerifyCsrfToken::class,
\MicroweberPackages\Checkout\Http\Middleware\CheckoutV2::class,
\MicroweberPackages\App\Http\Middleware\XSS::class
])
->namespace('\MicroweberPackages\Checkout\Http\Controllers')
->group(function () {

Expand Down

0 comments on commit f017cbf

Please sign in to comment.