Jump to content

Edit History

Kalle Swayze

Kalle Swayze


Styling, Typo, etc.

Hi guys,

recently I have installed a PrestaShop 1.7.8.6. In checkout there is a condition which needs to be checked. It says something like "I have read the terms and conditions and agree to them without reservation." (translated from German). At the end of the post you can find a screenshot of what I mean.

 

I found out the condition is coming from this file /themes/classic/templates/checkout/_partials/steps/payment.tpl

 

<ul>
  {foreach from=$conditions_to_approve item="condition" key="condition_name"}
    <li>
      <div class="float-xs-left">
        <span class="custom-checkbox">
          <input  id    = "conditions_to_approve[{$condition_name}]"
                  name  = "conditions_to_approve[{$condition_name}]"
                  required
                  type  = "checkbox"
                  value = "1"
                  class = "ps-shown-by-js"
          >
          <span><i class="material-icons rtl-no-flip checkbox-checked">&#xE5CA;</i></span>
        </span>
      </div>
      <div class="condition-label">
        <label class="js-terms" for="conditions_to_approve[{$condition_name}]">
          {$condition nofilter}
        </label>
      </div>
    </li>
  {/foreach}
</ul>

 

But I can not find where the content is coming from, also Google was not a helper here.

And as I need (or better say want) to add another condition (with a separate checkbox) I need to know where the initial condition is coming from, to add the other one the same way as the first was added.

Thanks a lot for your, appreciate it
Kalle

2022-07-16 23_47_50-KS-Checkout.png

Kalle Swayze

Kalle Swayze


Screenshot added

Hi guys,

recently I have installed a PrestaShop 1.7.8.6. In checkout there is a condition which needs to be checked. It says something like "I have read the terms and conditions and agree to them without reservation." (translated from German). At the end of the post you can find a screenshot of what I mean.

 

I found out the condition is coming from this file /themes/classic/templates/checkout/_partials/steps/payment.tpl

 

<ul>
  {foreach from=$conditions_to_approve item="condition" key="condition_name"}
    <li>
      <div class="float-xs-left">
        <span class="custom-checkbox">
          <input  id    = "conditions_to_approve[{$condition_name}]"
                  name  = "conditions_to_approve[{$condition_name}]"
                  required
                  type  = "checkbox"
                  value = "1"
                  class = "ps-shown-by-js"
          >
          <span><i class="material-icons rtl-no-flip checkbox-checked">&#xE5CA;</i></span>
        </span>
      </div>
      <div class="condition-label">
        <label class="js-terms" for="conditions_to_approve[{$condition_name}]">
          {$condition nofilter}
        </label>
      </div>
    </li>
  {/foreach}
</ul>

 

But I can not find where the content is coming from, also Google was not a helper here.

And as I need (or better say want to) add another condition (in a separate checkbox) I need to know where the initial condition is coming from, to add the other one the same way as the first was added.

Thanks a lot for your, appreciate it
Kalle

2022-07-16 23_47_50-KS-Checkout.png

Kalle Swayze

Kalle Swayze


Screenshot added

Hi guys,

recently I have installed a PrestaShop 1.7.8.6. In checkout there is a condition which needs to be checked. It says something like "I have read the terms and conditions and agree to them without reservation." (translated from German). At the end of the post you can find a screenshot of what I mean.

 

I found out the condition is coming from this file /themes/classic/templates/checkout/_partials/steps/payment.tpl

 

<ul>
  {foreach from=$conditions_to_approve item="condition" key="condition_name"}
    <li>
      <div class="float-xs-left">
        <span class="custom-checkbox">
          <input  id    = "conditions_to_approve[{$condition_name}]"
                  name  = "conditions_to_approve[{$condition_name}]"
                  required
                  type  = "checkbox"
                  value = "1"
                  class = "ps-shown-by-js"
          >
          <span><i class="material-icons rtl-no-flip checkbox-checked">&#xE5CA;</i></span>
        </span>
      </div>
      <div class="condition-label">
        <label class="js-terms" for="conditions_to_approve[{$condition_name}]">
          {$condition nofilter}
        </label>
      </div>
    </li>
  {/foreach}
</ul>

 

But I can not find where the content is coming from, also Google was not a helper here.

And as I need (or better say want to) add another condition (in a separate checkbox) I need to know where the initial condition is coming from, to add the other one the same way as the first was added.

Thanks a lot for your, appreciate it
Kalle

2022-07-16 23_47_50-KS-Checkout.png

Kalle Swayze

Kalle Swayze


Screenshot added

Hi guys,

recently I have installed a PrestaShop 1.7.8.6. In checkout there is a condition which needs to be checked. It says something like "I have read the terms and conditions and agree to them without reservation." (translated from German). At the end of the post you can find a screenshot of what I mean.

 

I found out the condition is coming from this file /var/www/druckbruder_prestashop/html/themes/classic/templates/checkout/_partials/steps/payment.tpl

 

<ul>
  {foreach from=$conditions_to_approve item="condition" key="condition_name"}
    <li>
      <div class="float-xs-left">
        <span class="custom-checkbox">
          <input  id    = "conditions_to_approve[{$condition_name}]"
                  name  = "conditions_to_approve[{$condition_name}]"
                  required
                  type  = "checkbox"
                  value = "1"
                  class = "ps-shown-by-js"
          >
          <span><i class="material-icons rtl-no-flip checkbox-checked">&#xE5CA;</i></span>
        </span>
      </div>
      <div class="condition-label">
        <label class="js-terms" for="conditions_to_approve[{$condition_name}]">
          {$condition nofilter}
        </label>
      </div>
    </li>
  {/foreach}
</ul>

 

But I can not find where the content is coming from, also Google was not a helper here.

And as I need (or better say want to) add another condition (in a separate checkbox) I need to know where the initial condition is coming from, to add the other one the same way as the first was added.

Thanks a lot for your, appreciate it
Kalle

2022-07-16 23_47_50-KS-Checkout.png

Kalle Swayze

Kalle Swayze

Hi guys,

recently I have installed a PrestaShop 1.7.8.6. In checkout there is a condition which needs to be checked. It says something like "I have read the terms and conditions and agree to them without reservation." (translated from German).

I found the condition is comming from this file /var/www/druckbruder_prestashop/html/themes/classic/templates/checkout/_partials/steps/payment.tpl

<ul>
  {foreach from=$conditions_to_approve item="condition" key="condition_name"}
    <li>
      <div class="float-xs-left">
        <span class="custom-checkbox">
          <input  id    = "conditions_to_approve[{$condition_name}]"
                  name  = "conditions_to_approve[{$condition_name}]"
                  required
                  type  = "checkbox"
                  value = "1"
                  class = "ps-shown-by-js"
          >
          <span><i class="material-icons rtl-no-flip checkbox-checked">&#xE5CA;</i></span>
        </span>
      </div>
      <div class="condition-label">
        <label class="js-terms" for="conditions_to_approve[{$condition_name}]">
          {$condition nofilter}
        </label>
      </div>
    </li>
  {/foreach}
</ul>

But I can not find where the content is coming from, also Google was not a helper here.

And as I need (or better say want to) add another condition (in a separate checkbox) I need to know where the initial condition is coming from, to add the other one the same way as the first was added.

Thanks a lot for your, appreciate it
Kalle

2022-07-16 23_47_50-KS-Checkout.png

×
×
  • Create New...