News:

Support the VirtueMart project and become a member

Main Menu

"Ask a Question" layout corrupted and don't know how

Started by fmlk4u, January 05, 2014, 19:56:30 PM

Previous topic - Next topic

fmlk4u

Hello Folks

Locally I have a copy of www.keyboard-centrum.nl and the "Ask a Question" form is nicely a popup window. The live website however the form is full screen (see attachments)

I checked all css files by comparing them in Araxis Merge and found no differences. Also the same VM version 2.0.24C is installed and same Joomla 2.5 version.

What else can I check to find what casues the different layout?

Thanks for feedback,

Regards, Fred

[attachment cleanup by admin]

jenkinhill

You have a JavaScript conflict preventing fancybox from running, this results from loading 3 different versions of jQuery. As well as correctly loading the required VirtueMart version, you then go on to load 2 more:

<script type="text/javascript" src="/templates/kbc_1_sidebar2012/jquery.js"></script>
<script src="/modules/mod_jlv_facebook_sidebar/js/jquery-1.7.2.js"></script>

This type of issue was mentioned to you earlier in http://forum.virtuemart.net/index.php?topic=121272.msg413901#new

For debugging see http://forum.virtuemart.net/index.php?topic=119638.0
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

fmlk4u

Thanks for your fast reply. Yes, I could remember I submitted the issue befor, but couldn't find the thread anymore even after trying search with some keyboards.

Currently I have both versions of sites locally in xampp so hopefuly I can dig further easier, with all files local.

Additionally I see difference URL when pressing the Ask question button. In the correct version it remains:


http://localhost/keyboardcentrum1/nl/winkel/digitale-piano/home-piano/ap-250-detail

in the corrupt version it becomes:
http://localhost/keyboardcentrum/nl/winkel/digitale-piano/home-piano/ap-250-detail/askquestion?tmpl=component


fmlk4u

I found out the cause and will now seek the fix. It is by default incompatibility with a module I use in the live website, that was not yet installed in the local version: JLV Facebook Sidebar which uses other jquesry1.7.2.js Any idea if I can keep using the JLV Facebook Sidebar and yet fix the layout problem?

jenkinhill

The rule for an efficient fast loading eCommerce site is always to use minimum addons. You could try turning jQuery off in the Fakebook module and see if it still works. Or you can swap the installed VM jQuery version of 1.6.4 for jQuery 1.7.1 if the module would work with that.
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

fmlk4u


Pcwolf

I think, it was always a new tab  :-\

But as i see, this is just a popup window.
I think i have javacript conflicts too, but i don't know where i need to delete the javascript versions ?

My demy website: http://6205.cloudaccess.net

jenkinhill

Debug shows a missing .js file but no jQuery conflict -  "NetworkError: 404 Not Found - http://6205.cloudaccess.net/js/craftyslide.js"

Fancybox should be used for the ask question popup but looks like this is not used in your overrides.

Debug info: http://forum.virtuemart.net/index.php?topic=119638.0
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

Pcwolf

Hi,

I removed the craftyslide.js and some javascript no conflict.
But the popup are still not working.

I have already fancybox, this is working with image zoom or something.
Jquery easy, i tried with every version of jquery, still not working. :-\

jenkinhill

Well the popup is still not working, no js error. I guess it would be OK but you need to add some css as the template override being used does not look very professional.

Always switch to Beez template if you want to see how something should work in VM default.
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

Pcwolf

Well, i tried in beez template and the popup is working on that template.
I don't know which css do i need to place for overrides, its only a popup?

Something is not working in my template. ???

jenkinhill

Popups still use template files. But yes, something definitely not working, but is not a VM problem as it works in Beez.
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

Pcwolf

I deleted the Ask question folder from /templates/html/com_virtuemart
Its still showing the window tab ?