Hi,
Indeed, it will require AcyMailing to modify their auto susbcription plugin to add such trigger:
function onHikashopBeforeDisplayView(&$view){
$config = hikashop_config();
if($config->get('checkout_legacy',0))
return true;
$viewName = $view->getName();
if($viewName != 'checkout')
return true;
if(!isset($view->workflow_step) || !isset($view->workflow) || !isset($view->workflow['steps'][$view->workflow_step]['content']))
return true;
if(!isset($view->extraData))
$view->extraData = array();
$after = ($this->params->get('fieldafter','password') == 'email') ? 'top' : 'middle';
$subText = $this->params->get('captchatext');
if(empty($subText)){
$subText = JText::_('Captcha');
}
$c = new hikaShopRecaptcha2();
$html = '<div class="hkform-group control-group hikashop_registration_recaptcha_line" id="hikashop_registration_recaptcha_line"><label id="captchamsg" for="grecaptcha" class="hkc-sm-4 hkcontrol-label" title="">'.$subText.'*</label><div class="hkc-sm-8">'.$c->recaptcha_get_html($this->params->get('public_key'),$this->params->get('theme'), @$view->ajax).'</div></div>';
foreach($view->workflow['steps'][$view->workflow_step]['content'] as $k => $v) {
if($v['task'] != 'login')
continue;
if(!isset($view->extraData[$k]))
$view->extraData[$k] = new stdClass();
if(!isset($view->extraData[$k]->$after))
$view->extraData[$k]->$after = array();
$view->extraData[$k]->$after[] = $html;
}
}
(that's taken straight from the recaptcha plugin which we modified to support the same thing since it has to do the same thing, ie add some HTML to the registration form of HikaShop.
Regarding chozen, we'll have that working with the next version.