Hi Iuri,
Much of the underlying code in ecommerce has been depricated. This error is likely the tip of an iceberg of issues anyone will encounter when using ecommerce with OpenACS 5.9.
Most likely, there is less work in refactoring the parts you need into a new package or packages.
Most of the key components exist as monolithic processes that can be extracted into new packages. Refactoring using the newer coding standards with the existing data model will likely avoid most issues.
The ecommerce templating system has been refactored into a wiki: Q-Wiki. Depending on the organizational environment, xowiki may be more suitable.
If payment processing is external, such as with PayPal, the cl-custom package may be a solution.
Stable versions of Q-Wiki and cl-custom are at https://github.com/openacs-ecg2
If you have experience with the mature OpenACS object system, it may make sense to use its features to define a new product data model.
As for a more elaborate system, I'm (still) re-writing ecommerce into a suite of packages that includes porting sql-ledger.
cheers,
Ben