like I stated initially, this is not supported in eCart, we cannot offer support for this including correcting your code.
if you need assistance, you should either sign up for a premiere ticket where we can work with you on a one to one basis, or submit a request on the job forum to see if one of the community experts can help you with this.