News:

Support the VirtueMart project and become a member

Main Menu

Facebox popup position

Started by seweryn, August 22, 2012, 12:08:12 PM

Previous topic - Next topic

seweryn

Hello,

Facebox popup position is not correct in the VM 2.0.8e

In <head> I have code: "<style type="text/css"> #facebox { top: 150px!important } </style>"

Then they Facebox is always 150 pixels from the top and not at the center of the page.

I know that I must remove the code: "<style type="text/css"> #facebox { top: 150px!important } </style>", but nowhere can I find this passage.

Does anyone know how to remove it?
I ask for help.
I use VirtueMart 2.0.22c & Joomla 2.5.14

bytelord

Hi,

Joomla version, VM version? Do you use any commercial or custom templates? Any demo link?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

seweryn

#2
Joomla 2.5.6
VM 2.0.8e

any templates, only Virtuemart files and my own template frontend.

in VM 2.0.9a I see that all works fine..

Could you help me please?
I use VirtueMart 2.0.22c & Joomla 2.5.14

bytelord

Hello,

As i remember works great on 208e. If you want to change it, you can override it with CSS.
btw, the facebox css file is located under your_joomla_folder\components\com_virtuemart\assets\css\facebox.css

hope it helps you out

Regards.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

seweryn

in facebox.css it isn't.
The style is in <head> of my index.php when I use Firebug I see: "<style type="text/css"> #facebox { top: 150px!important } </style>"

I think that is generate by some .js file
I use VirtueMart 2.0.22c & Joomla 2.5.14

bytelord

please provide with a site url to check it.

may be you have installed an third party facebox plugin/compo/mod for your joomla web site and overrides it.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

seweryn

I sent you url with private message.

Popup you can see when you add a product from menu: "Pro"

Thanks a lot.
I use VirtueMart 2.0.22c & Joomla 2.5.14

bytelord

#7
ok,

the css is produced from jquery javascript code and are produced just right, as you above there is top:272px.

<div style="left: 487.5px; display: block; top: 272px;" id="facebox"><div class="popup"><div class="content my-groovy-style"><div><a href="/kategoria-1" class="continue">Kontynuuj zakupy</a><a href="/koszyk" class="showcart floatright">Zawartość koszyka</a><div class="facebox1"> </div><h4>Produkt - test został dodany do koszyka.</h4></div></div> <a class="close" href="#"></a></div></div>

after that something overrides it and i think is the extra cart module you use, its mod_ice_virtuemart_cart modules, there is a javascript file called vmprices_2.js inside folder assets in the module folder that overrides the asset file from the original assets/vmprices.js!

you can change that override by overriding again by adding on your vm css override file the following code:

#facebox .popup {
top:xxxxpx;!important;
}


or just contact that module vendor and ask him!!


So, was an override after all and not vm issue, vm facebox works great! :) :)

Best regards


Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

seweryn

Yes, this is problem with mod_ice_virtuemart_cart modules, when I turn off this module, facebox is on the right position.

Thank you so match! :)
I use VirtueMart 2.0.22c & Joomla 2.5.14

bytelord

#9
just override it or better change your cart module vmprices_2.js ;)
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

seweryn

It isn't in vmprices_2.js, it was in mod_ice_virtuemart_cart.php at line 34:

$document->addCustomTag('<style type="text/css"> #facebox { top: '.$margin_top.'px!important } </style>');

I remove this line.
Now all works fine! - module cart too ;)

Thanks you so match one more time!
I use VirtueMart 2.0.22c & Joomla 2.5.14

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!