Jump to content

payment module validation header problem


gniewko

Recommended Posts

Hi,

i'm stuck in the final phase of the creating a store.

I've added to the header his own hook in which I put accordionslider.

Slieder display correctly except subpages payment validation modules.

Store is on Presta 1.4.9 and problem appears in bankwire modules, cashondelivery, paypal and payu.

 

I noticed that each of the pages (properly displayed) uses the controller.

Subpages above modules, controllers are not only simple php, started with:

 

include (dirname (__FILE__). '/.. /.. / config / config.inc.php');

include (dirname (__FILE__). '/.. /.. / header.php');

include (dirname (__FILE__). '/ cashondelivery.php');

 

The problem is that by his own hook in headerze load other modules - except accordionslider.

Has anyone encountered a similar problem?

 

Regards

Link to comment
Share on other sites

Hi :)

I found a bug/problem in accordionslide.php there is function showCarousel that checks whether the file with xml configuration for slider exist ...

As I described earlier all is great until the php script from any payment module attempts to include header ...

tsomething happens with the path and the following condition returned a false ...

 

public function showCarousel($params)

{

if (file_exists('modules/accordionslide/accordionslide.xml'))

{

if ($xml = simplexml_load_file('modules/accordionslide/accordionslide.xml'))

{...);

global $cookie, $smarty;

$smarty->assign(array(

'width' => Configuration::get('ACC_WIDTH'),

'height' => Configuration::get('ACC_HEIGHT'),

'hookslider' => Configuration::get('TO_HOOK'),

'xml' => $xml,

'destaques' => $destaques,

'changeSpeed' => Configuration::get('ACC_CHANGE_SPEED'),

'this_path' => $this->_path

));

return $this->display(__FILE__, 'accordionslide.tpl');

}

}

return false;

}

Edited by gniewko (see edit history)
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...