I am trying to customise the hikashop "Order Creation Notification" email - but when I go in to the email I can't click on Save or Cancel as it gives me a 403 Forbidden error. All other emails seem to work fine - it's just this particular one.
I started experimenting and worked out if I cleared the Text Version of that email I could then save or cancel it.
I continued to narrow it down by removing parts of the text version until I narrowed it down to the echo preg_replace commands in the bottom few IF statements:
echo preg_replace('#{(?:(?!}).)*}#i','',$billing)."\n\n";
And
echo preg_replace('#{(?:(?!}).)*}#i','',$shipping)."\n\n";
By removing these 2 echo pre_replace lines I can then save or cancel from the edit screen. BUT I can't just comment them out - they have to be removed all together.
Any ideas? I suspect it's possibly a PHP setting I need to adjust in the php.ini file - but it's a bit beyond me.
Cheers!!
-- HikaShop version -- : 2.2
-- Joomla version -- : 2.5
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : IE, FF and Chrome do the same thing
-- Error-message(debug-mod must be tuned on) -- : 403 Forbidden Error