Active
Project:
Ubercart Limited Time Offer
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2011 at 20:38 UTC
Updated:
19 Oct 2011 at 16:53 UTC
As it says on the tin, LTO stops working when I change theme over to Acquia Prosper. Any ideas what is causing the javascript clash?
Thanks
Comments
Comment #1
Alex Regenbogen commentedI worked around it by giving all Fusion-based themes that I use a custom uc_lto.js.
In that, I have changed Drupal.settings.ucLTO.expiration to Drupal.settings.ucLTO.expiration[0] where found. (lines 16 and 22)
That worked for me, and I havent bothered looking into it any further ;)
Comment #2
dmendo11 commentedThis is the same problem I have. I am using Acquia Prosper and the javascript doesn't count down like it should. I have tried using the solution from Alex, but it didn't work.
Did you add the uc.lto.js to the js theme folder? Can you explain these a little bit more?
David
Comment #3
Alex Regenbogen commentedIf you set the uc_lto.js to be read from the theme folder, all you have to do is place a js-folder inside the Acquia Prosper, and put the modified uc_lto.js in there...
in uc_lto.js on line 17: change
Drupal.settings.ucLTO.expiration *= 1000;to
Drupal.settings.ucLTO.expiration[0] *= 1000;and on line 23:
change
delta = Drupal.settings.ucLTO.expiration - now.getTime() + (now.getTimezoneOffset() * 60000);to
delta = Drupal.settings.ucLTO.expiration[0] - now.getTime() + (now.getTimezoneOffset() * 60000);That's all I did...
Hope this is clear enough! :-)
Comment #4
dmendo11 commentedAlex,
I have tried what you have mention, but it is still not counting down. Do you have a sample of how it is suppose to be working?
I mean, mine is semi working. I do have the date for example: 2 days 14 hours 21 min 13 sec
But that is just static, it doesn't do the 13, 12, 11, 10, 9, 8... and so on. Is it suppose to do that?
David