Jump to content

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 39: Notice: Undefined index: identifier


Recommended Posts

Hello,

 

I am developping a module in which I would like to display several delivery option lists when the user is choosing the delivery option.

 

So, in the DisplayBeforeCarrier hook, I return

$this->display(__FILE__, 'carrier_choice.tpl');

where 'carrier_choice.tpl is a template file I created in views/templates/hook.

In order to reproduce the same form as for the original theme (see image below), I copied and past in carrier_choice.tpl the content of shipping.tpl (which is in themes\classic\templates\checkout\_partials\steps\shipping.tpl).

 

Problem, I have this error:

 

Quote

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 39: Notice: Undefined index: identifier

 

I targetted the error annd it comes from the first line of the code I copied from shipping.tpl, this line is:

 

 

{extends file='checkout/_partials/steps/checkout-step.tpl'}

 

I am stuck at this point, can't find a solution, if anyone has, it would be super :)

 

Thanks

 

Image of the form I want to reproduce from my module (I want 2 of them, below one another... instead of just one)

 

Untitled.thumb.png.4558a53b52b8f26dc5b0d4fa75672025.png

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...