Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    After Network Portal cart is showing empty

    Bug Report
    3
    4
    330
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hammadweb2020 last edited by

      Hi Team,

      This is major issue in bagisto. when i place order on website it will redirect on network payment portal. once its done he is showing cart is empty.

      if (Cart::hasError())
      return response()->json(['redirect_url' => route('shop.checkout.cart.index')], 403);

          Cart::collectTotals();
      
          $this->validateOrder();
      
          $cart = Cart::getCart();
          session()->put('gt',$cart->base_grand_total);
      

      if ($redirectUrl = Payment::getRedirectUrl($cart)) {
      return response()->json([
      'success' => true,
      'redirect_url' => $redirectUrl
      ]);
      }

          $order = $this->orderRepository->create(Cart::prepareDataForOrder());
      
          Cart::deActivateCart();
      
          session()->put('order', $order);
        return $order->id;
      
      1 Reply Last reply Reply Quote 0
      • P
        prateek-webkul last edited by

        Hii @hammadweb2020,

        Can you please elaborate more about your issue, and if possible, attach some screenshots.

        Thanks

        1 Reply Last reply Reply Quote 0
        • H
          hammadweb2020 last edited by

          Hi Bagisto Team,

          Is it possible if i share the website code with you to check and fix the issue.
          Can i get your company email id so that i can send a code to you for review.

          1 Reply Last reply Reply Quote 0
          • admin
            admin last edited by

            Hello @hammadweb2020

            You can raise ticket regarding the query and can also share the code here: https://bagisto.uvdesk.com/en/customer/create-ticket/

            1 Reply Last reply Reply Quote 0
            • First post
              Last post