I'm redoing a shopping cart to be object based. I have a user object with a getDiscount method. I keep getting error when I call the method "The value "cfuser2ecfc1565979364$funcGETDISCOUNT" cannot be converted to a number".
Here is my code:
initializing:
<cfset session.objUser = createObject("component","cfcs.user").init(FORM.Email,FORM.Password)/>
calling:
<cfset Discount = session.objUser.getDiscount/>
This is my first time doing oo in cf so any help would be appreciated.
Thanks,
Nick
Here is my code:
initializing:
<cfset session.objUser = createObject("component","cfcs.user").init(FORM.Email,FORM.Password)/>
calling:
<cfset Discount = session.objUser.getDiscount/>
This is my first time doing oo in cf so any help would be appreciated.
Thanks,
Nick