• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

prevent user from checkout if not sign in

Knowledge Base
2
2
293
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.
  • J
    jonathantyar last edited by 1 Jul 2019, 13:14

    how to prevent user from checkout if he not sign in or doesn't have account?

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 2 Jul 2019, 06:18

      Hi,

      You can see on 'onepage.blade.php' file (Shop->src->Resources->views->checkout), in this files, a component name as 'checkout is created', in this components' created method, you can this a code like -
      if(! customerAddress) {
      this.new_shipping_address = true;
      this.new_billing_address = true;
      }

      turn it to false.

      then see 'customer-info.blade.php (Shop->src->Resources->views->checkout->onepage)
      in this file. search for v-if="!this.new_billing_address" and give login button.

      Thanks

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post