VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: T.A. Garrison, LLC on March 24, 2023, 00:20:56 AM

Title: Fancy Box Images...lost?
Post by: T.A. Garrison, LLC on March 24, 2023, 00:20:56 AM
//components/com_virtuemart/assets/images/fancybox/fancy_close.png

That is the path to the folder where Virtuemart looks for the "Close" (X) image for Fancy Box - both for the Ask a Question modal and the add to cart modal.

In the site I'm developing, the "X" image is missing from the modal. I've checked the folder and there is nothing in the folder except "fancybox.png" which is of no value to me.

If someone would be so kind as to point me to "where" the image (fancy_close.png) was placed - instead of where it belongs - then I could move it to where it belongs.

Does anybody know where the image can be found?
Title: Re: Fancy Box Images...lost?
Post by: man.of.earth on March 24, 2023, 13:24:19 PM
fancybox.png is a sprite image. The close X is there too. You probably overridden the .css (moved it to the template folder), so the paths in the fancybox file css do no longer work correctly.
I fixed a few fancybox issues here: http://forum.virtuemart.net/index.php?topic=149697.0 (and optimized it a bit).
The css paths to the images are relative to the website root, so they work anywhere you put them.
Title: Re: Fancy Box Images...lost?
Post by: T.A. Garrison, LLC on March 25, 2023, 00:57:47 AM
Bad assumption.

If you look at the links to the images, you can see that's hard coded in the VM files...not something "I" have done.

After searching through and finding a default VM demo site where the X appears, the sprite is used, but the link is:
/components/com_virtuemart/assets/images/fancybox/fancybox.png

That's correct....but that's not the link in my system, which is created only by the developers.

Even though I've found the problem, VM developers need to make the change in the file(s) and rename /fancy_close.png to /fancybox.png - that is currently in the correct folder and there are no other images. None needed.
Title: Re: Fancy Box Images...lost?
Post by: jenkinhill on March 25, 2023, 13:34:22 PM
In all my default VM installations the fancybox close X is a sprite.  Nowhere in the default files is a fancy_close.png

(https://i.ibb.co/NWPGmDJ/fancyclose.png) (https://ibb.co/dkqHLCV)
Title: Re: Fancy Box Images...lost?
Post by: hazael on March 25, 2023, 18:27:10 PM
You don't see the "close" button because you  have disabled fabcybox in the virtuemart settings (template)
Title: Re: Fancy Box Images...lost?
Post by: man.of.earth on March 26, 2023, 03:13:31 AM
You don't need to react as if I was blaming you for anything (obviously, I offered a possible logical explanation for your problem). Maybe you were blamed in the childhood for nothing, that you react like that. I don't expect thanks either :D (d'oh, such people tend to be rude).

You forgot to mention the VM version you're using, which is usually important...
It seems you have an older VM version, maybe even before that sprite was used instead of many icons (in 2021 !!!).

Quote from: T.A. Garrison, LLC on March 25, 2023, 00:57:47 AM
Bad assumption.

If you look at the links to the images, you can see that's hard coded in the VM files...not something "I" have done.

After searching through and finding a default VM demo site where the X appears, the sprite is used, but the link is:
/components/com_virtuemart/assets/images/fancybox/fancybox.png

That's correct....but that's not the link in my system, which is created only by the developers.

Even though I've found the problem, VM developers need to make the change in the file(s) and rename /fancy_close.png to /fancybox.png - that is currently in the correct folder and there are no other images. None needed.
Title: Re: Fancy Box Images...lost?
Post by: T.A. Garrison, LLC on March 31, 2023, 01:10:16 AM
Thank you, Hazel.

That was precisely what happened - Fancy Box was disabled.