Bagisto Forum

    Bagisto

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

    What is use of "view_render_event()" function And why we load on view file ? Please explain me.

    General Discussion
    3
    3
    1576
    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.
    • _
      _developer_12 last edited by

      My view file : -

      {!! view_render_event('bagisto.admin.catalog.product.create_form_accordian.configurable_attributes.controls.before') !!}

      <div class="table 1">
      <table>
      <thead>
      <tr>
      <th>{{ __('admin::app.catalog.products.attribute-header') }}</th>
      <th>{{ __('admin::app.catalog.products.attribute-option-header') }}</th>
      <th></th>
      </tr>
      </thead>

                                      <tbody>
                                          @foreach ($configurableFamily->configurable_attributes as $attribute)
                                              <tr>
                                                  <td>
                                                      {{ $attribute->admin_name }}
                                                  </td>
                                                  <td>
                                                      @foreach ($attribute->options as $option)
                                                          <span class="label">
                                                              <input type="hidden" name="super_attributes[{{$attribute->code}}][]" value="{{ $option->id }}"/>
                                                              {{ $option->admin_name }}
      
                                                              <i class="icon cross-icon"></i>
                                                          </span>
                                                      @endforeach
                                                  </td>
                                                  <td class="actions">
                                                      <i class="icon trash-icon"></i>
                                                  </td>
                                              </tr>
                                          @endforeach
                                      </tbody>
      
                                  </table>
                              </div>
      

      {!! view_render_event('bagisto.admin.catalog.product.create_form_accordian.configurable_attributes.controls.after') !!}

      Please explain me what is use of this function.

      Thanks,

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

        Hello @_developer_12 ,

        Refer bagisto documentation view render event

        Thanks

        A 1 Reply Last reply Reply Quote 0
        • A
          AN-Varit @prateek-webkul last edited by

          The new version from the doc article in here
          https://devdocs.bagisto.com/1.x/advanced/render-event.html

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