Re: Custom form in admin POST fails
This is because $templater variable (and a few other variables) should be instantiated before executing the example.
I'm sorry for being unclear. The above is not the exact code that you should use (because the code depends on where you use it). It is just an example of how the random number is injected in one of the forms generated by X-Cart itself.
You are to look through the rest of the script with the above code to understand where all the variables are taken from. Also, perhaps the "if" condition will be different in your situation.
|