Support will be provided with delays until 3 June. We are sorry for the inconvenience.
We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Status: Closed
  • Opened by: pix (pix)
  • Open Date: 10.01.17, 04:26
  • Closed by: Marek (marek)
  • Closed on: 12.02.17, 11:12
  • Reason: No answer from a customer
  • Comment: Glad to help!

Ticket #10145 - Alysum javascript error

Platform: Prestashop

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, but the solution is not posted.

url -

Please advise.

This ticket does not depend on any other tickets.

Alex Support (Admin) 10 Jan 2017, 16:43

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) 16 Jan 2017, 21:33

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, 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.

broken_checkout.jpg (43.9 KiB)
Alex Support (Admin) 17 Jan 2017, 18:06

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) 17 Jan 2017, 18:10

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

pix (pix) 18 Jan 2017, 20:01

Bump + Ping :)

Alex Support (Admin) 18 Jan 2017, 21:42

Hi. Sorry for waiting. There is some strange bug. Our developer will try to investigate and fix the issue

pix (pix) 19 Jan 2017, 16:23

Alex, any ETA? It’s live site :(

Marek (marek) 20 Jan 2017, 10:59

Hi Pix.
sorry for the delay, but the issue is too strange, we are working to fix it

Marek (marek) 22 Jan 2017, 11:16

Hi Pix.
sorry for the delay again.
I just make temporary fix, please check it out, is everything fine?


pix (pix) 23 Jan 2017, 13:56

No it’s not, it should not show the registration field before clicking the button as per your demo sites. Like login on the left.
Status it’s now ======Critical======.

Marek (marek) 23 Jan 2017, 14:09

ok, I’ll try now

Marek (marek) 23 Jan 2017, 14:59

I just checked how it works with default prestashop theme, and it’s the same. Look at this

pix (pix) 23 Jan 2017, 16:03

Don’t you know how your theme works? Check this - I wouldn’t write if it was like this since beginning

So you push button as login, and then AJAX form pops out.
It was working before your colleagues ALEX AJAX registration fix above

Marek (marek) 23 Jan 2017, 21:01

Yes, now I see.
Now it should work fine. Please check it out