VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: guidocx842 on October 10, 2013, 11:02:12 AM

Title: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 10, 2013, 11:02:12 AM
Hi everybody,
I don't know if anybody see this... but the popup that shows Terms of service in cart view stop working after 2.0.24 upgrade.
When I press the link I olny see a blank page with the email addresses of the vendor.
I don't have any override of /cart/default.php. I've noticed it on VM 2.0.24 + Joomla 2.5.14.
Can you confirm this bug?
Thanks a lot!  ;)
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: jenkinhill on October 10, 2013, 11:46:59 AM
Works fine for me in all my 2.0.24 stores and nobody else has mentioned this. Are you using SEF?
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 10, 2013, 12:28:18 PM
Hi jenkinhill and thank you very much for your answer! ;)
Yes, I've SEF activated on all my sites.
I can give you a link of a production site that has this problem: http://www.tuscanyexcellence.co.uk/cart
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 21, 2013, 12:43:40 PM
Hello!
Does anybody replicate or solved this bug? Can you provide me a workaround?
I don't want to modify the /cart/default.php file manually inserting a specific link because I have multilanguage shop and I don't know how to check the language activated to use different <a> tag basing on language...
Thank you very much!  ;)
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: Milbo on October 22, 2013, 11:10:02 AM
We need to know your jquery settings. Do you use fancybox, yes no? and such things.
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: jjk on October 22, 2013, 13:19:02 PM
Looks to me like a javascript conflict. On your product details page I can see this error:
TypeError: jQuery(...).fancybox is not a function

In the source code of the product details page there is:
<script src="/plugins/system/vmcloudzoom/js/jquery-1.6.js" type="text/javascript"></script>
Does the problem go away if you turn of this zoom plugin?
You can also try if it makes a difference when you turn on/off the 'Use Fancybox ' in VM Configuration > Templates tab > Activate Css Styles & Javascripts section.

In your cart view there also is:

.../media/widgetkit/widgets/lightbox/js/lightbox.js?
.../media/widgetkit/widgets/spotlight/js/spotlight.js

where in standard VirtueMart the fancybox or facebox javascript would be loaded.
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 22, 2013, 17:41:47 PM
Hi everybody and thank you for your answers!
Quote from: Milbo on October 22, 2013, 11:10:02 AM
We need to know your jquery settings. Do you use fancybox, yes no? and such things.
Hi Milbo! Where I can find jquery settings? In my website I don't use fancybox... I've installed Widgetkit that is a module that I use to show the mini-slideshow in home page.
Quote from: jjk on October 22, 2013, 13:19:02 PM
Looks to me like a javascript conflict. On your product details page I can see this error:
TypeError: jQuery(...).fancybox is not a function

In the source code of the product details page there is:
<script src="/plugins/system/vmcloudzoom/js/jquery-1.6.js" type="text/javascript"></script>
Does the problem go away if you turn of this zoom plugin?
You can also try if it makes a difference when you turn on/off the 'Use Fancybox ' in VM Configuration > Templates tab > Activate Css Styles & Javascripts section.

In your cart view there also is:

.../media/widgetkit/widgets/lightbox/js/lightbox.js?
.../media/widgetkit/widgets/spotlight/js/spotlight.js

where in standard VirtueMart the fancybox or facebox javascript would be loaded.
I jjk! Why do you think that the problem is in product detail page if the fancybox of Terms is in cart page?
I've tried to stop the zoom plugin but the problem remain.
I've tried to remove flag from "Use fancybox" Virtuemart configuration, but the problem remain.
I tried to remove flag "User Virtuemart Jquery libraries" and, if I click on the link of Terms and conditions, I'm redirected in home page.
Now I re-activate all of these things.
I'm not overriding /cart/default.php.

I don't know why there are

.../media/widgetkit/widgets/lightbox/js/lightbox.js?
.../media/widgetkit/widgets/spotlight/js/spotlight.js

in my cart view because I use Widgetkit to show an image slider in home page and I publish it only in home page so, in cart page, I don't need this script... do you think that they could be the problem?

Thank you so much for your help!
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 22, 2013, 17:48:37 PM
I correct myself... I don't find

.../media/widgetkit/widgets/lightbox/js/lightbox.js?
.../media/widgetkit/widgets/spotlight/js/spotlight.js

in my cart view... sorry...
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: jjk on October 22, 2013, 20:35:32 PM
Quote from: guidocx842 on October 22, 2013, 17:48:37 PM

.../media/widgetkit/widgets/lightbox/js/lightbox.js?
.../media/widgetkit/widgets/spotlight/js/spotlight.js
Looking at your cart view with Firebug enabled, the screenshot attached below becomes visible. Maybe Youtheme uses a different version of Fancybox/jQuery than VirtueMart, which produces a conflict with VM 2.0.24. I don't know - it's just a guess.

[attachment cleanup by admin]
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 22, 2013, 21:17:51 PM
Hi jjk!
Thank you for your detailed answer!
I update widgetkit at the latest release but the problem remain (also if I see from Firebug that now the problem is different... can you confirm?)
I will show this topic to Yootheme staff to understand how we can solve this issue.
On their website Yootheme says that their product are fully compatible with Virtuemart so I think the best thing for everybody is understand if, at this moment, there is a compatibility problem between this two products.
Thank you very much!
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: Milbo on October 23, 2013, 16:58:29 PM
They may write to me a pm to fix this issue.
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: CarlosC on October 23, 2013, 19:15:33 PM
I have the same problem. I am using a slider (Unite Revolution Slider) on my startpage in VM 2.0.24 joom 2.5.14. php 5.3.10-1 all overrides off. Firebug shows no errors or warnings. I see only my emailadress if I call the TOS. Tried to fix the js problem with jQuery Easy. Didn't work.
But now I have disabled the joomla content plugin at the shop configuration. Now the fancybox works fine. But now my Slider is not working anymore.
Maybe this will help someone to locate the problem.

Best regards Carlos

Next state:

After comparing a lot of files I could see that in my TOS is an email address. The  "Simple Javascript email Cloaker" in \libraries\joomla\html\html\email.php effects a conflict with the fancybox. If I delete the email-address in my TOS, its working fine. With email address it is not working.
Has someone an idea to fix this problem? Or where can I activate the facebox again?
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 24, 2013, 19:42:12 PM
Quote from: Milbo on October 23, 2013, 16:58:29 PM
They may write to me a pm to fix this issue.
Hi Milbo! They say me that the problem are the jquery script that I call from my template index.php (that it's not a yootheme template).
So I remove those scripts but the problem remains.

Quote from: CarlosC on October 23, 2013, 19:15:33 PM
I have the same problem. I am using a slider (Unite Revolution Slider) on my startpage in VM 2.0.24 joom 2.5.14. php 5.3.10-1 all overrides off. Firebug shows no errors or warnings. I see only my emailadress if I call the TOS. Tried to fix the js problem with jQuery Easy. Didn't work.
But now I have disabled the joomla content plugin at the shop configuration. Now the fancybox works fine. But now my Slider is not working anymore.
Maybe this will help someone to locate the problem.

Best regards Carlos

Next state:

After comparing a lot of files I could see that in my TOS is an email address. The  "Simple Javascript email Cloaker" in \libraries\joomla\html\html\email.php effects a conflict with the fancybox. If I delete the email-address in my TOS, its working fine. With email address it is not working.
Has someone an idea to fix this problem? Or where can I activate the facebox again?


OMG! I also have email addresses in my TOS! Tomorrow I will try to remove them! Thank you so much by now... I keep you updated!
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 25, 2013, 12:38:40 PM
Ok! CarlosC have find the partial solution! It works also for me! I remove all mailto: link in TOS page and now the popup works!  ;)
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: CarlosC on October 25, 2013, 16:38:41 PM
Thanks for your feedback guidocx842. The Problem seams to be the compatibility with the 'Simple Javascript email Cloaker'.  I have now insert the email-address as a picture.png.
But that es not a very comfortable way.
May be the developers find the bug and change it.

Best gegards Carlos
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on October 25, 2013, 20:51:48 PM
Yes! I also replace my mailto: link with png...
Thanks to you for your help findind a solution for this bug!  ;)
I hope this thread will be useful to developers to fix the bug and users to solve this problem.
Best regards,
Guido
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: CarlosC on November 04, 2013, 09:13:29 AM
Hallo Guido,

one question. I have now the problem with the png that the tcpdf seams to have a problem with the png and I get an error while creating the invoice. I have read in some other topics f.e. Topic: http://forum.virtuemart.net/index.php?topic=98914.0 that tcpdf can't work with the png. All the help in the other topics does not work for me. Not with the .jpg and its also not a problem with the htaccess.
Did you get the same error and could you fix it?

Best regards Carlos
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: guidocx842 on November 04, 2013, 19:26:15 PM
Hi CarlosC.
This is how I solved that problem: http://forum.virtuemart.net/index.php?topic=118929.new;topicseen#new
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: PatOne26 on November 21, 2013, 14:22:15 PM
I can confirm that.

If you have an email address in your TOS (with or without a link, the simply written email address is enough), the popup won't appear but the email address.
Title: Re: [BUG] Terms of service popup stop working after upgrade to VM 2.0.24
Post by: maxlatino74 on November 21, 2013, 20:42:12 PM
hi , can you give me 2 minutes of your time??
is a long time that I try to solve a problem of my WebSite: When I make an order, and I do not accept the terms of service, the order goes on when it should be stopped. It should show instead a warning that feels the need of the terms of service with a popup ... can you solve this problem?

i already enabled in the settings that need to accept the terms of service to every order

thanks