Checkout a VOPky
Napísané: 15. Mar 2016 9:59
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
doplnte za riadok 768:
z
teda vznikne:
Oprava je jednoducha. V subore
Kód: Vybrať všetko
catalog\view\theme\<vasa tema>\template\checkout\checkout.tpl
Kód: Vybrať všetko
$('#button-payment-method').button('reset');
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">×</button></div>');
}
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">×</button></div>');
$('#button-payment-method').button('reset'); // fix continue button - reset in case of warning
}