Oxid6 - EXCEPTION SYSTEMCOMPONENT TEMPLATENOTFOUND

oxid6

#1

Hi,
I am getting this issue “[message EXCEPTION_SYSTEMCOMPONENT_TEMPLATENOTFOUND filename.tpl]” for overriding the ThankYouController.php. Please any one help me. How to solve the issue.


#2

how you want to override this *.tpl file? with module or from template
p.s paste some code


#3

I need to override the “ThankYouController.php” module file and template “thankyou.tpl” both files.


#4

The error message speaks of “filename.tpl”. You say, it’s “thankyou.tpl”. Is the template file set correctly in your controller?


#5

Yep. Still: pls paste some code :wink:


#6

I configured the template file in my controller ThankYouController

“protected $_sThisTemplate = ‘/views/blocks/page/checkout/filename.tpl’;”


#7

Did you add this in template area in metadata.php?


#8

Yes, I add below mentioned code in metadata.php file,

‘blocks’ = array(
array(
‘template’ => ‘page/checkout/thankyou.tpl’,
‘block’ => ‘checkout_thankyou_proceed’,
‘file’ => ‘/views/blocks/page/checkout/filename.tpl’
),
),


#9

Templates are not blocks. There is a template section in metadata.


#10

https://docs.oxid-esales.com/developer/en/6.0/modules/skeleton/metadataphp/index.html?highlight=metadata