Jump to content

Edit History

quentic

quentic


improvement

On 10/27/2021 at 5:47 AM, Darussalam said:

The fix was very easy but not clearly explained.

You need to edit this file: /themes/ *your theme name*/templates/checkout/partials/steps/payment.tpl
Change the word disabled to enabled. In my theme it was on line 154 (or just search for the word disabled)

Change this line <button type="submit" {if !$selected_payment_option} disabled {/if} class="btn btn-primary center-block">

to this: <button type="submit" {if !$selected_payment_option} enabled {/if} class="btn btn-primary center-block">

We can remove the whole condition as "enabled" is not a standard html5 attribute.

Prestashop handles the enabled/disabled by a class attribute.

quentic

quentic

On 10/27/2021 at 5:47 AM, Darussalam said:

The fix was very easy but not clearly explained.

You need to edit this file: /themes/ *your theme name*/templates/checkout/partials/steps/payment.tpl
Change the word disabled to enabled. In my theme it was on line 154 (or just search for the word disabled)

Change this line <button type="submit" {if !$selected_payment_option} disabled {/if} class="btn btn-primary center-block">

to this: <button type="submit" {if !$selected_payment_option} enabled {/if} class="btn btn-primary center-block">

remove the word enabled altogether as only disabled is standard html5

×
×
  • Create New...