News:

Looking for documentation? Take a look on our wiki

Main Menu

Facebook button disappears after loading child product

Started by wonderland, April 08, 2015, 20:28:20 PM

Previous topic - Next topic

wonderland

Hello,

I have placed some social buttons under product image and when I select a child product, Facebook button doesn't load, it loads only when I press refresh button.

I may already know what causes this problem, unfortunately I don't know how to solve it. I understand that child product is loaded with Ajax and that probably is the reason why Facebook button doesn't load. I also have problem with one other script that starts working only after refreshing the child product page - I use a custom lightbox for product image.

I have a temporary fix in place which reloads page after child product is selected, that way Facebook button  and custom lightbox works but that is a very ugly solution. I was hoping to find some other solutions here.

VM - 3.0.6.2
Joomla - 3.3.6
PHP - 5.4.16


jenkinhill

Are you going to provide a URL so that someone can maybe look at this?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

wonderland

Hello,

Of course, here is an url - http://bit.ly/1a6wrFV.

You can see facebook button here and If you click on image lightbox will also work.
If you choose a child variant under "Auduma krāsa", you will see that facebook is button doesn't load, and if you click on image, it will open without lightbox. If you refresh page, facebook button will work and so will lightbox.

I have disabled the ugly reload script  for now.

Studio 42

Hi,

This is simply because a day the team added ajax loading for chid, but all script wrote before is not added anymore in child product.
It's the same when you click next/previous product bar.

This mean 90% plugin or change you do, using javascript, does not work in last virtuemart 3.0.X
The best is that we/you hade no transition period to change your script. In joomla you have depreciated function for 6 months, in virtuemart you have major change in minor releases without any warnings.

I think, the simpliest was to add the feature with a chekbox(Activate Ajax loading) to have ajax loading and not to integrate this without any warnings!

Miku

Quote from: Studio 42 on April 09, 2015, 00:01:02 AM
I think, the simpliest was to add the feature with a chekbox(Activate Ajax loading) to have ajax loading and not to integrate this without any warnings!
The feature is available now in the newest VM 3.0.7

wonderland


Studio 42

Yep,
I think disable ajax loading resolve most off the new Javascript bugs.