Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: AJAX Facebox not working properly

AJAX Facebox not working properly 10 years 2 months ago #8478

Hi!

I have a problem, both in the registration page and in the caret checkout Facebox its not loading when I click on "edit shipping adress", "register and checkout", "create an account", etc. it doesn't load in an iframe, it takes you to that page.

Links:
Part of the message is hidden for the guests. Please log in or register to see it.

I'd appreciate any help, thanks!
Last Edit: 10 years 2 months ago by Marco Antonio Aguilar de la Vega.
The administrator has disabled public write access.

AJAX Facebox not working properly 10 years 2 months ago #8506

Hi,

Your website includes a JavaScript problem

Attachment Pasted_Image_2_14_14__1_41_AM-17.png not found



That problem must be fixed first.Then the "facebox" will start running just fine when the problem is gone.

This problem is very interesting and really hard to explain it to you. (first of all, it is caused by the lazyloadforjoomla plugin. If you disable it, everything will start working just fine)

The reason why it creates problem is because of the wrong " and ' usage.
For instance, in this page:
Part of the message is hidden for the guests. Please log in or register to see it.

There is this line:
jQuery("#selectshippingContent").html("<br/><br/><p style='text-align:center;'><img src="http://chiquitos.com/plugins/system/lazyloadforjoomla/blank.gif" data-src='http://chiquitos.com/templates/yoo_nano3/html/com_virtuemart/assets/images/Flexible/AjaxLoading.gif' /></p><br/><br/>");

(which is the reason of the console error, if you look at the screenshot above)

but the correct version of this line should have been this:
jQuery("#selectshippingContent").html("<br/><br/><p style='text-align:center;'><img src='http://chiquitos.com/plugins/system/lazyloadforjoomla/blank.gif' data-src='http://chiquitos.com/templates/yoo_nano3/html/com_virtuemart/assets/images/Flexible/AjaxLoading.gif' /></p><br/><br/>");

You may compare these 2 lines and say: they are the same exact things, but no they are not the same. The 1st line is wrong and the 2nd is a true usage.

I can't provide you a patch to fix this problem because it is something to do with the lazyLoader plugin. Just disable the lazyloadforjoomla plugin.

If lazyloadforjoomla is a commercial plugin (you have paid for it), then contact to its developer and have them to provide you a patch for this problem. It is relatively easy to resolve this problem, but it requires some coding modification in the plugin PHP file, which is beyond our free support. We don't provide free support if the problem is not caused by our extensions/templates directly.

________________________________________________________________________________

If you like CleanMart and satisfied with the support you have received, please "write a review" on:
flexiblewebdesign.com/Virtuemart-2-Templates/CleanMart

Rate CleanMart and write a couple of sentences to share your experience with the support team. It won't take more than 2 minutes from you but it is extremely important for us. Thanks in advance!


Regards,
Support
Last Edit: 10 years 2 months ago by Support.
The administrator has disabled public write access.

AJAX Facebox not working properly 10 years 2 months ago #8521

Thanks, I disabled the LazyLoad plugin and everything is fine as you stated.

Could you please point me out what's de difference between those 2 lines of code so I can implement the changes please?

thanks again!
The administrator has disabled public write access.

AJAX Facebox not working properly 10 years 2 months ago #8534

The first line has
<img src=" 

but the second line (which is the correct form) has
<img src='

pay attention to " and ' usage. (quotation sign should be replaced by apostrophe sign)

Most likely The LazyLoad plugin uses preg_replace() function of PHP to do it, but it should implement this:
<img src='http://chiquitos.com/plugins/system/lazyloadforjoomla/blank.gif'
instead of;
<img src="http://chiquitos.com/plugins/system/lazyloadforjoomla/blank.gif"

I hope this makes sense now.

Regards,
Support
The administrator has disabled public write access.
Time to create page: 0.145 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo