Hot answers tagged

1

template : It means path of the .html template of the particular type of field to generate field. elementTmpl : It means path of .html template of the particular type of field (select,text,textarea etc.) Reference


1

document.getElementById('poboxmessage').style.display='block'; document.getElementById('poboxmessage').innerHTML=$.mage.__(document.getElementById('poboxmessage').innerHTML); I was misinterpreting that my div returns a string in block inside mage functionality rather it needs to be converted to block first and then into plain text. $.mage returns ...


1

Please add this to the PHP file. $giftcods = ['VFDFRVXSW43VF', 'FFRFRFVSW43VF', 'VFDFGFGFXSW43VF']; $templateVars = [ 'store' => $this->storeManager->getStore(), 'customer_name' => $name, 'giftcods' => implode("<br>",$giftcods) ]; And set in template as ->setTemplateVars($templateVars) Use variable in HTML as, <div ...


Only top voted, non community-wiki answers of a minimum length are eligible