Am using Venus need theme, on mini cart's delete click and Checkout's Already have an account? Click here to login throws this issue.

Uncaught TypeError: this.modal.zIndex is not a function modal.js:339

Due to this, modal not working fine. Can anyone please help me to sort out this issue?


make the following change in _setActive function in modal.js

    _setActive: function () {
        var zIndex = this.modal.css("zIndex", ),
            baseIndex = zIndex + this._getVisibleCount();

        if (this.modal.data('active')) {

        this.modal.data('active', true);

       // this.overlay.zIndex(++baseIndex);
        this.prevOverlayIndex = this.overlay.css("zIndex",);
        this.modal.css("zIndex",this.overlay.css("zIndex",) + 1);

        if (this._getVisibleSlideCount()) {
            this.modal.css('marginLeft', this.options.modalLeftMargin * this._getVisibleSlideCount());

So basically, change any reference to .zIndex() function to .css("zIndex",)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.