Post by arhatron » Thu Jun 30, 2022 3:08 pm

After trying, I found the problem is common.js

Code: Select all

alert(1);
// Alert Fade
var alert = function () {
    window.setTimeout(function() {
        $('.alert-dismissible').fadeTo(1000, 0, function() {
            $(this).remove();
        });
    }, 7000);
}
alert(2);

$(document).ready(alert);
$(document).on('click', 'button', alert);
Before the var, alert, ok. After that, not ok. How to make normal alert work?

New member

Posts

Joined
Wed Sep 07, 2016 12:38 pm

Post by JNeuhoff » Thu Jun 30, 2022 7:40 pm

This one of many OpenCart 4.0.0.0 bugs. You shouldn't use OpenCart 4.0.0.0 for a live site yet.
The quickest way to fix it is by commenting out the var alert = function () {...} function in the common.js.

Or have you tried the latest fix: https://github.com/opencart/opencart/co ... b87514cc88 ?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 40 guests