Integrated Header/Footer & Unhelpful Rating Emails

Martin

2013-07-01 11:11:07

Scenario:
  1. IKM is integrated with your Interspire Cart

  2. Customer rates an article as Unhelpful


Problem:

IKM pulls your store header into the email and spams the cr*p out of the email so you have a LOT of scrolling to do to find the relevant information...

Translation: P*ss poor testing from Interspire.



Solution:



Open: includes/classes/class.questions.php



Find:
$GLOBALS['AKB_CLASS_TEMPLATE']->SetTemplate('Email.UnhelpfulRating');
$GLOBALS['AKB_CLASS_TEMPLATE']->disabledEmbeddedTemplateOverride = true;


Replace with:
$GLOBALS['AKB_CLASS_TEMPLATE']->SetTemplate('Email.UnhelpfulRating');

//MOD Fix header being included with Rating email
$GLOBALS['AKB_CLASS_TEMPLATE']->disabledEmbeddedTemplateOverride = true;
$body = $GLOBALS['AKB_CLASS_TEMPLATE']->ParseTemplate(true);
$GLOBALS['AKB_CLASS_TEMPLATE']->disabledEmbeddedTemplateOverride = false;
//MOD END


This stops the integrated header and footer being inserted into the email and avoids a really stupid bug from driving you nuts.



Oh and btw, this is not an integration, more a p*ss poor implimentation from Interspire that should have been resolved properly from day 1... Still not sure why I paid for it at all.