0
Good afternoon,
I installed in my store Magento 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 am getting this error on line 91 from the pagseguro-module.js. file Follow the code snippet:
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 looked for some solution on the developer’s website, but without success. In fact, I found another post there with the same problem, no solution.
One of the tips I got said to disable some extent that might be causing the conflict. I use all the extensions installed, which are very few.
Jquery is not my strong suit, so I ask for help from the gurus!
Thank you in advance!
By accessing the source code from the browser, you can confirm that the jquery.colorbox-min.js file is being rendered?
– Felipe Assunção
Buddy, thanks for everything, but I gave up this module, decided to go for the transparent checkout. I’m having another problem, but I’ll generate another topic. Big Hug!
– Hebert Richard
@Felipeasuncion, I ended up coming back. Pagseguro does not support, I tell you, a tremendous headache. Anyway, I checked the source code, there’s a reference to it in
<head>
. The problem is in the function. I’m researching, but this language is definitely not my strong one. I’m still studying, by necessity. What now? I’m lost!– Hebert Richard
The shop in question, if you would like to have a look is: http://donachicosa.com.br
– Hebert Richard
Test with anonymous client and it was usually you changed the integration?
– Felipe Assunção
That’s right, buddy. These people from Pagseguro are very "paia". I downloaded Ricardo Martins' module, I had mistakes at first, but I solved them. The problem is that has a monthly fee of R $ 9,90 for Boletos and Wire Transfers. Anyway, the Credit Card is 100% solved, I’ve done several tests, and you also... rs... Thank you for the goodwill and support, this way our community gets stronger and stronger! Hug and success!
– Hebert Richard