Error in Module PagSeguro in Loja Magento

0

Good afternoon,

I installed in the Magento store the module PagSeguro, but I can not finish the purchase, because I get the following error:

Uncaught TypeError: jQuery.colorbox is not a function

I'm getting this error at line 91, of the file pagseguro-module.js. Here is the snippet of code:

var open = function(o) {
    var options = jQuery.extend({},defaults,o || {});
    if( options.inline && options.avoidDefault ){
        if( !options.width && !options.innerHeight ){
            options.innerWidth = parseInt(jQuery( options.href ).css('width').replace('px','')) + parseInt(jQuery( options.href ).css( 'padding-left' ).replace('px','')) + parseInt(jQuery( options.href ).css( 'padding-right' ).replace('px',''))
        }
        if( !options.height && !options.innerHeight  ){
            options.innerHeight = parseInt(jQuery( options.href ).css('height').replace('px','')) + parseInt(jQuery( options.href ).css( 'padding-top' ).replace('px','')) + parseInt(jQuery( options.href ).css( 'padding-bottom' ).replace('px',''));
        }
    }
    jQuery.colorbox(options);
};

I searched for a solution on the developer's website, but to no avail. Also, I found another post there with the same problem, with no solution.

One of the tips I got told me to disable some extension that might be causing the conflict. I use all installed extensions, which are very few.

Jquery is not my strong, so I ask the gurus for help!

Thanks in advance!

    
asked by anonymous 29.01.2016 / 15:44

1 answer

0

See if you referenced the jQuery.colorbox file after the jquery file.

<script src="Scripts/jquery.min.js"></script>
<script src="Scripts/jquery.colorbox.js"></script>
    
17.05.2017 / 16:11