Promokit logo

Promokit Helpdesk - Alysum

  • Status: Assigned
  • Opened by: pix (pix)
  • Open Date: 10.01.17, 04:26

FS#10145 - Alysum javascript error

Platform: Prestashop 1.6.1.7

Theme: Alysum 4.6
Issue: the layer cart and the top blockcart dropdown doesn’t display.

There is a javascript error:

global.js:104 Uncaught ReferenceError: FancyboxI18nPrev is not defined

  at HTMLDocument.<anonymous> (global.js:104)
  at j (jquery-1.11.0.min.js:2)
  at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
  at Function.ready (jquery-1.11.0.min.js:2)
  at HTMLDocument.K (jquery-1.11.0.min.js:2)

(anonymous) @ global.js:104
j @ jquery-1.11.0.min.js:2
fireWith @ jquery-1.11.0.min.js:2
ready @ jquery-1.11.0.min.js:2
K @ jquery-1.11.0.min.js:2

I have checked the theme’s global.tpl and everything is declared all right there.

The issue is similar to the one here, http://support.promokit.eu/index.php?do=details&task_id=4402 but the solution is not posted.

url - https://goo.gl/e0BEbP

Please advise.

This ticket does not depend on any other tickets.

Alex Support (Admin)
Tuesday, 10 January 2017, 16:43 GMT+1
Support Team

Hi. Fixed.
I just took the condition from default PS file

if (typeof(FancyboxI18nClose) !== 'undefined' && typeof(FancyboxI18nNext) !== 'undefined' && typeof(FancyboxI18nPrev) !== 'undefined' && !!$.prototype.fancybox)

and added it instead of

if (!!$.prototype.fancybox)

in the file to /themes/alysum/js/global.js

pix (pix)
Monday, 16 January 2017, 21:33 GMT+1

Hi,
On January 09 we have contacted you in regards to an JS issue we're having with the cart block in Alysum 4.6.
You fixed it by inserting the code here, http://support.promokit.eu/index.php?do=details&task_id=4402 into the global.js but that led to another issue in the single checkout page where the new account form is not working anymore as it can be seen in the picture attached.
Currently we have replaced the modified (by you) global.js with the original theme's one and renamed your changed one to global.js.mod.
That meansof course that we are back to the original blockcart issue.
Please have a look and let us know the result.
The original message is below.
Regards,

Alex Support (Admin)
Tuesday, 17 January 2017, 18:06 GMT+1
Support Team

Hi. Why you describe all the previous our conversation? I can read everything in this ticket :D
We will try to fix it today

pix (pix)
Tuesday, 17 January 2017, 18:10 GMT+1

I wrote this before seeing that the thread is still open. Thank you

Loading...