Checkout a VOPky

Ostatné technické problémy.
SelfMan
Administrátor
Príspevky: 1029
Dátum registrácie: 19. Aug 2011 23:55

Checkout a VOPky

Príspevok 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
                }
Napísať odpoveď