Jump to content
  • 0

Prośba o pomoc w naprawie checkboxa


Burnago

Question

Witam wszystkich ponownie :)

Dzisiaj próbowałem zmodernizować moduł zapisu na newsletter w stopce dodając chcechboxa który uaktywnia przycisk subskrybuj (RODO). Przy pomocy internetu zbudowałem mechanizm który wykonuje tą operację jednak jest pewien problem. Całość... działa, lecz w widoku produktów (wtedy gdy przeglądam produkt) okienko checkbox powiększa się w dziwny sposób jak by dostosowywał się do tabletów i telefonów. Czy mógłby ktoś pomóc w rozwiązaniu problemu? Może przyczyna leży w innym pliku?

Zmiany dokonywałem w pliku ps_emailsubscription. Poniżej dodam fragment kodu (może ktoś znajdzie błąd).

<form action="{$urls.pages.index}#footer" method="post">

          <div class="col-xs-12">
            
			<input
              class="btn btn-primary pull-xs-right hidden-xs-down"
              name="submitNewsletter"
              type="submit"
			  id="send"
			  disabled="true"
              value="{l s='Subscribe' d='Shop.Theme.Actions'}"
            />
            <input
              class="btn btn-primary pull-xs-right hidden-sm-up"
              name="submitNewsletter"
              type="submit"
			  id="send2"
			  disabled="true"
              value="{l s='OK' d='Shop.Theme.Actions'}"
            />
            <div class="input-wrapper">
              <input
                name="email"
                type="text"
                value="{$value}"
                placeholder="{l s='Your email address' d='Shop.Forms.Labels'}"
              >
            </div>
			<input class="btn btn-primary pull-xs-left hidden-xs-down" name="{$field.name}" type="checkbox" name="spr" id="spr" onClick="if(this.checked==true){ send.disabled=false;}else{ send.disabled=true;}" />
			<input class="btn btn-primary pull-xs-left hidden-sm-up" name="{$field.name}" type="checkbox" name="spr" id="spr" onClick="if(this.checked==true){ send2.disabled=false;}else{ send2.disabled=true;}" />
			<br />

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...