Hi Mehtaz
I have been waiting for a long time for your developers to make a simple change to the sppb core so that we can have Ajax processing in the plugin. But unfortunately, since my message, two new versions have been released so far but we do not see any changes. This ability to develop sppb as a standard and not need to modify the core is important to my team. The only thing that needs to be done by your developers is to replace the old code with the following code.
old code: components/com_sppagebuilder/controller.php line 418
require_once JPATH_ROOT . '/components/com_sppagebuilder/parser/addon-parser.php';
$core_path = JPATH_ROOT . '/components/com_sppagebuilder/addons/' . $input->get('addon') . '/site.php';
$template_path = JPATH_ROOT . '/templates/' . SppagebuilderHelperSite::getTemplateName() . '/sppagebuilder/addons/' . $input->get('addon') . '/site.php';
if (file_exists($template_path))
{
require_once $template_path;
}
else
{
require_once $core_path;
}
new code:
$plugin_name=$input->get('plugin', 'get', 'STRING');
require_once JPATH_ROOT . '/components/com_sppagebuilder/parser/addon-parser.php';
$core_path = JPATH_ROOT . '/components/com_sppagebuilder/addons/' . $input->get('addon') . '/site.php';
$plugin_path = JPATH_ROOT . '/plugins/sppagebuilder/'.$plugin_name.'/addons/' . $input->get('addon') . '/site.php';
$template_path = JPATH_ROOT . '/templates/' . SppagebuilderHelperSite::getTemplateName() . '/sppagebuilder/addons/' . $input->get('addon') . '/site.php';
if (file_exists($template_path))
{
require_once $template_path;
}
elseif(file_exists($plugin_path))
{
require_once $plugin_path;
}
else{
require_once $core_path;
}
say to developer and please use new code.