Page 1 of 1

Integrated Header/Footer & Unhelpful Rating Emails

Posted: Mon Jul 01, 2013 12:11 pm
by Martin
Scenario:
  • IKM is integrated with your Interspire Cart
  • 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:

Code: Select all

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

Code: Select all

				$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.