VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Siguana on March 31, 2018, 20:28:10 PM

Title: Modal windows don't work
Post by: Siguana on March 31, 2018, 20:28:10 PM
  I am editing the coding for having my VirtueMart as I want, but I have broken something...

  Now, the modal windows don't work.

  For example, if I click into the image of a product, it doesn't open in a modal window, and it opens in a new page.  Or if I click into the "Ask a question about this product" link, it doesn't work (it only works if I right-click the link and I open it in a new tab).

  I have edited many things, and I don't want to start again from zero.  How can I fix it?
Title: Re: Modal windows don't work
Post by: Jörgen on April 01, 2018, 01:11:06 AM
No Vm version, No Joomla Version ? Custom template ? Lots of changes ?

The only way I see is to revert the changes until You come back to a working version. Who knows what You have changed ?
Deactivate the changed override files in Your template one by one until it works again. Maybe just the CSS files ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: Modal windows don't work
Post by: jenkinhill on April 01, 2018, 11:37:59 AM
It is a good idea to make a note of each change you make when editing & developing template overrides to make it easier to work back (I assume you are editing overrides and not original VM files).
Title: Re: Modal windows don't work
Post by: Studio 42 on April 01, 2018, 19:58:15 PM
Check the browser console (F12 on PC chrome or firefox), you have certainly a javascript error.
Title: Re: Modal windows don't work
Post by: Siguana on April 02, 2018, 11:49:14 AM
Quote from: Studio 42 on April 01, 2018, 19:58:15 PM
Check the browser console (F12 on PC chrome or firefox), you have certainly a javascript error.

  You are right!  It is a Javascript error!  I have check the coding and it is a problem with a third party extension.  I have contacted with the developer and I am waiting for the answer.  Thanks a lot!