Jump to content

configuration value saved by ajax.


Recommended Posts

Hello,

 

we saved our all option by ajax page from a module by call

 

ajax and on that ajax.php we save option like bellow

 

Configuration::updateValue($key, $value);

 

and add

 


include_once('../../config/config.inc.php');

include_once('../../init.php');

 

 

on the ajax.php pages top to load library.

 

 

But when enable multishop and same ajax call which return 200 ok message on firebug

 

return 320 ok which means that page is found but request is not complete.

 

I go through the config.php and debug and find that.

 

 

 



$context = Context::getContext();

/* Initialize the current Shop */
$context->shop = Shop::initialize();

 

 

code block send page by redirect when multishop is enable.

 

 

 

Do any one know how to handle this issue.

Link to comment
Share on other sites

×
×
  • Create New...