Strana 1 z 1

Checkout a VOPky

Napísané: 15. Mar 2016 9:59
od používateľa SelfMan
FYI: Checkout v OpenCart 2.1.0.x ma bug v tom, ze pokial neodsuhlasite VOPky a date dalej, tak zobrazi chybovu hlasku ze s nimi treba suhlasit a tam skonci. Tlacidlo prestane fungovat.
Oprava je jednoducha. V subore

Kód: Vybrať všetko

catalog\view\theme\<vasa tema>\template\checkout\checkout.tpl
doplnte za riadok 768:

Kód: Vybrať všetko

$('#button-payment-method').button('reset');
z

Kód: Vybrať všetko

                if (json['error']['warning']) {
                    $('#collapse-payment-method .panel-body').prepend('<div class="alert alert-warning">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">&times;</button></div>');
                }
teda vznikne:

Kód: Vybrať všetko

                if (json['error']['warning']) {
                    $('#collapse-payment-method .panel-body').prepend('<div class="alert alert-warning">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">&times;</button></div>');
                    $('#button-payment-method').button('reset'); // fix continue button - reset in case of warning
                }