public function ajaxCall() { global $smarty, $cookie; $webservice_exi = new SoapClient(EXIMAGEN_WEBSERVICE); $list = EXIMAGEN_LIST; $parameter = array("Quantity" => Tools::getValue('quantity'), "ItemNumber" => Tools::getValue('item_no'), "Technique" => Tools::getValue('technique'), "Area" => Tools::getValue('area'), "Colors" => Tools::getValue('color'), "List" => $list, "Size" => Tools::getValue('size'), "key" => EXIMAGEN_KEY); $result_xml = $webservice_exi->CustomQuoteCalc($parameter); return json_encode($result_xml->CustomQuoteCalcResult); }