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

Bagisto

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

checkout address add new fields

General Discussion
2
10
813
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.
  • C
    cmpengineers last edited by cmpengineers 2 Nov 2020, 08:02 2 Nov 2020, 07:16

    Hello

    I have added new address fields but the button to place has disappeared and its not showing now any more

    Screen Shot 2020-11-02 at 11.01.14 AM.png

    Screen Shot 2020-11-02 at 11.01.08 AM.png

    Screen Shot 2020-11-02 at 11.01.01 AM.png

    regards

    1 Reply Last reply Reply Quote 0
    • C
      cmpengineers last edited by 2 Nov 2020, 08:55

      Hello

      how to make field from required to optional and I can remove the HTML tag also

      regards

      1 Reply Last reply Reply Quote 0
      • 8 days later
      • C
        cmpengineers last edited by 10 Nov 2020, 10:04

        any one there !!!!

        1 Reply Last reply Reply Quote 0
        • C
          cmpengineers last edited by 10 Nov 2020, 10:29

                <div :class="`col-12 form-field ${errors.has('address-form.billing[note]') ? 'has-error' : ''}`">
                      <label for="billing[note]">
                          {{ __('shop::app.checkout.onepage.note') }}
                      </label>
          
                      <input
                          type="text"
                          class="control"
                          id="billing[note]"
                          name="billing[note]"
                          v-model="address.billing.note"
                          @change="validateForm('address-form')"
                          data-vv-as="&quot;{{ __('shop::app.checkout.onepage.note') }}&quot;" />
          
                      <span class="control-error" v-if="errors.has('address-form.billing[note]')">
                          @{{ errors.first('address-form.billing[note]') }}
                      </span>
                  </div>
          

          this field is required if I don't put anything it wont show the next setup where I can select payment

          1 Reply Last reply Reply Quote 0
          • D
            deepak227 last edited by 10 Nov 2020, 11:06

            @cmpengineers said in checkout address add new fields:

            t the button to place has disappeared and its not showing now any more

            Hello @cmpengineers please tell me what you actually want ti do with screenshot so i can understand.

            Thank you

            1 Reply Last reply Reply Quote 0
            • C
              cmpengineers last edited by cmpengineers 10 Nov 2020, 12:26 10 Nov 2020, 12:21

              @deepak227

              I have added new fields area, block* , street* , house_building* , apartment_office , floor , avenue , note --> these are optional fields

              for billing and shipping address some of them are required and others are optional, for now, if I don't fill all the fields it won't show me the next form the shipping so I'm trying to make some fields optional so if the customer did not type anything the next form will appear which the shipping form

              Screen Shot 2020-11-10 at 3.20.05 PM.png

              Screen Shot 2020-11-10 at 3.21.04 PM.png

              regards

              1 Reply Last reply Reply Quote 0
              • D
                deepak227 last edited by 10 Nov 2020, 13:12

                hello @cmpengineers please make changes in packages\Webkul\Shop\src\Resources\views\checkout\onepage and use example code

                <input type="text" class="control" id="billing[company_name]" name="billing[company_name]" v-model="address.billing.company_name" data-vv-as=""{{ __('shop::app.checkout.onepage.company-name') }}""/>

                like this.

                Thank you hope this will work for you.

                C 1 Reply Last reply 10 Nov 2020, 13:17 Reply Quote 0
                • C
                  cmpengineers @deepak227 last edited by 10 Nov 2020, 13:17

                  @deepak227

                  thank you very much , ill doing it right now and let you know its working

                  best regards

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmpengineers last edited by 10 Nov 2020, 13:31

                    @deepak227 said in checkout address add new fields:

                    <input type="text" class="control" id="billing[company_name]" name="billing[company_name]" v-model="address.billing.company_name" data-vv-as=""{{ __('shop::app.checkout.onepage.company-name') }}""/>

                    yes its working fine but i'm confuse which folder should I modify i saw another ticket ?

                    Dear Rahul,
                    You can remove any field from checkout form through this page,
                    I also mentioned the path of the file, after removing field you have to run
                    php artisan vendor:publish --force command and you will get your desired form which you want.

                    path=https://github.com/bagisto/bagisto/tree/master/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage

                    so which folder should I modify the Velocity or Shop ?

                    please advise

                    regards

                    1 Reply Last reply Reply Quote 0
                    • D
                      deepak227 last edited by 10 Nov 2020, 13:52

                      @cmpengineers said in checkout address add new fields:

                      Shop

                      Shop package

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