However, I am struggling with setting a new variable to the NVelocity engine, I feel I am missing how to commit it to the NVelosity engine after I add new variables. I am trying to simply allow me to read certain elements in scriplets using the NVelocity variables that I set previously (during the login process). I have read through the forums but no luck. Additionally the NVelosity documentation is lacking..
Code: Select all
NVelocityEngine nve = NVelocityEngine.Instance;
Hashtable parameters = new Hashtable();
parameters.Add("userbalance", "100");
//How do I "commit" this addition here?
Code: Select all
#if(!$customer.IsAnonymous)
Your Balance: ${userbalance}
#end