Jump to content

[SOLVED] Pop up fancybox terms of conditions not displaying


Recommended Posts

Hello everybody, I am trying to display a fancybox in contact-form.tpl the same way as checkout page for displaying TOS and Privacy Policy, at checkout page everything works fine, but in contact-form.tpl and other pages it is not working and can't figure what is wrong, anybody could help?

 

The same happens when creating a new account, so in order-carrier.tpl works fine, and contact-form.tpl and authentication.tpl doesn't work.

 

I have read a lot of topics about it but can't still find the solution...

 

Tried default theme and still the same.

 

Thank you so much!

 

P.S. ver 1.5.6.2

 

Solved adding at controllers/front/Authcontroller.php and ContactController.php this 

 

$this->addjqueryPlugin('fancybox');

 

at this function:

 

 

 

public function setMedia()
{
parent::setMedia();
if (Context::getContext()->getMobileDevice() === false)
$this->addCSS(_THEME_CSS_DIR_.'authentication.css');
$this->addJqueryPlugin('typewatch');
$this->addjqueryPlugin('fancybox');
$this->addJS(_THEME_JS_DIR_.'tools/statesManagement.js');
}
Edited by redoli (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...