Bagisto Forum

    Bagisto

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

    Edit profile User profile(edit address section)

    Knowledge Base
    2
    5
    344
    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.
    • P
      prashant2408 last edited by

      Screenshot from 2022-05-31 14-56-59.png

      • Want to remove Vat id flied
        My Steps:
      1. by searching by url I get route code 'packages/Webkul/Shop/src/Http/routes.php'
      //Customer Address Edit Form Show
                      Route::get('addresses/edit/{id}', 'Webkul\Customer\Http\Controllers\AddressController@edit')->defaults('_config', [
                          'view' => 'shop::customers.account.address.edit'
                      ])->name('customer.address.edit');
      
      1. In 'packages/Webkul/Shop/src/Resources/views/customers/account/address/edit.blade.php'
        I remove or comment out this
                          {{--
                              <div class="control-group" :class="[errors.has('vat_id') ? 'has-error' : '']">
                                  <label for="vat_id">{{ __('shop::app.customer.account.address.create.vat_id') }}
                                      <span class="help-note">{{ __('shop::app.customer.account.address.create.vat_help_note') }}</span>
                                  </label>
                                  <input type="text" class="control" name="vat_id" value="{{ old('vat_id') ?: $address->vat_id }}"
                                  v-validate="''" data-vv-as="&quot;{{ __('shop::app.customer.account.address.create.vat_id') }}&quot;">
                                  <span class="control-error" v-if="errors.has('vat_id')">@{{ errors.first('vat_id') }}</span>
                              </div>
      
                              {!! view_render_event('bagisto.shop.customers.account.address.edit_form_controls.vat_id.after') !!}
                          --}}
      

      But nothing reflect on page.

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi @prashant2408

        You have to change Here for the same.

        1 Reply Last reply Reply Quote 0
        • P
          prashant2408 last edited by

          Thanks you so much @sanjay-webkul and webkul team for your valuable input my issue is resolve now.
          I think this confusion is due to having multiple file with same purpose. Is there is any way to find and remove all duplicate and inactive code.
          If I am using packages/Webkul/Velocity ( using velocity theme)
          Is 'packages/Webkul/Shop is inactive. (show some bug when I remove it)
          I just want to remove not active code to simplify code base.
          One more thing it may be simple for somebody who is expert in Bagisto to understand file structure and to find the right code when wish to customize it.But I feel quite time consuming to navigate around the code. Is there is some explicit and specific documentation for the file structure and how code is organized in Bagisto?

          1 Reply Last reply Reply Quote 0
          • sanjay-webkul
            sanjay-webkul last edited by

            Hi There,

            Thanks for the update.
            Also, if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com

            That would be grateful for us.

            Thanks & Regards,

            Bagisto Team

            1 Reply Last reply Reply Quote 0
            • sanjay-webkul
              sanjay-webkul last edited by

              Hi @prashant2408
              Our team works by creating packages in Bagisto.
              And the velocity or shop both are the different-different themes.
              So you have to done changes on the file of the same package in which theme you wants to reflect the changes

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