Jump to content
  • 0

Jak wylączyć opcjonalne pola w "Kontakt z nami"?


Michał_Testerski

Question

2 answers to this question

Recommended Posts

  • 0

W formularzu kontaktowym numeru zamówienia z poziomu panelu admina wyłączyć się nie da (tak ja wspominał @endriu107), ale możesz to zrobić poprzez zmiany w szablonie:

/themes/TWOJ_SZABLON/modules/contactform/views/templates/widget/contactform.tpl

zakomentuj ten kod, albo usuń.

{if $contact.orders}
    <div class="form-group row">
        <label class="col-md-3 form-control-label" for="id-order">{l s='Order reference' d='Shop.Forms.Labels'}</label>
        <div class="col-md-6">
          <select id="id-order" name="id_order" class="form-control form-control-select">
            <option value="">{l s='Select reference' d='Shop.Forms.Help'}</option>
            {foreach from=$contact.orders item=order}
              <option value="{$order.id_order}">{$order.reference}</option>
            {/foreach}
          </select>
        </div>
        <span class="col-md-3 form-control-comment">
          {l s='optional' d='Shop.Forms.Help'}
        </span>
      </div>
{/if}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...