<?
// Netshop POST request handler
// (a) Change Cart Contents
// (b) Process Payment Events
// (c) Output Documents (e.g. bill/sberbank reciept)
error_reporting(E_ALL ^ E_NOTICE);
$NETCAT_FOLDER = join(strstr(__FILE__, "/") ? "/" : "\\", array_slice(preg_split("/[\/\\\]+/", __FILE__), 0, -4)).( strstr(__FILE__, "/") ? "/" : "\\" );
include_once ($NETCAT_FOLDER."vars.inc.php");
require_once ($INCLUDE_FOLDER."index.php");
$client_url = urldecode("http://".$HTTP_HOST.$REQUEST_URI);
$parsed_url = parse_url($client_url);
$current_catalogue = $nc_core->catalogue->get_by_host_name($parsed_url['host']);
$catalogue = $current_catalogue["Catalogue_ID"];
if (!$catalogue) $catalogue = 1; // first site
//LoadModuleEnv();
$MODULE_VARS = $nc_core->modules->get_module_vars();
// Process cart changes
if ( ajax_zapros =) ) {
//otherwise: qty=new_qty - новое количество
$shop->CartPut($array, "cart_params");
}
?>