Updating templates gives errors.
Posted: Thu Jan 20, 2022 9:53 am
Greetings,
I am doing some amendments to the HTML code we have on templates like "Create Buyer", "Login Template", "Cart template" and so on.
I noticed whenever I save the template it shows the blank page on the front side (webpage). And when I come back to the template it shows some errors in the existing php code which is the default code from APWT for the successful purchasing process.
Example, I updated the "Create Buyer" template which leads to a blank page on the website. In order to debug the problem, I come back to the template and noticed
<tr>
<td><input type="email" name="email" id="email" class="form-control" value="<? print $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['email']; ?>"/></td>
</tr>
<tr>
<td>First Name</td>
</tr>
<tr>
<td><input type="text" name="first_name" id="firstname" class="form-control" value="<? print $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['first_name']; ?>"/></td>
</tr>
"<? print $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['email']; ?>"
In order to make pages work at least, I just commented this code like this. <? print // $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['email']; ?>
But that is not a solution, it will stop the process of APWT backed process and would cause inconvenience to the customers.
This is something that is crucial and needs to be fixed.
I have attached screenshots for reference.
I am doing some amendments to the HTML code we have on templates like "Create Buyer", "Login Template", "Cart template" and so on.
I noticed whenever I save the template it shows the blank page on the front side (webpage). And when I come back to the template it shows some errors in the existing php code which is the default code from APWT for the successful purchasing process.
Example, I updated the "Create Buyer" template which leads to a blank page on the website. In order to debug the problem, I come back to the template and noticed
<tr>
<td><input type="email" name="email" id="email" class="form-control" value="<? print $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['email']; ?>"/></td>
</tr>
<tr>
<td>First Name</td>
</tr>
<tr>
<td><input type="text" name="first_name" id="firstname" class="form-control" value="<? print $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['first_name']; ?>"/></td>
</tr>
"<? print $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['email']; ?>"
In order to make pages work at least, I just commented this code like this. <? print // $ **PHP CODE IS NOT ALLOWED HERE {DMK-00-39}** ['email']; ?>
But that is not a solution, it will stop the process of APWT backed process and would cause inconvenience to the customers.
This is something that is crucial and needs to be fixed.
I have attached screenshots for reference.