Extending $customer and inherited class list
Posted: Sat Oct 27, 2007 7:31 pm
Hello,
A few questions:
1> What is the best way to extend ($customer). We have a multi-tiered subscription model and have new user roles:
Free Registration
Subscriber (has purchased 1 or more subscriptions, set on checkout of a subscription)
Premium Subscriber (has purchased 1 or more subscriptions with a premium attribute)
and want to create new functions like $customer.getRoles or $customer.IsSubscriber.
2> What is the best way to extend the registration/checkout section to add profile additions/value pairs via UserAttributes table, and be able to extend this to call and set these? Is there underlying functionality not documented/exposed to do this, or do we need to make a class and data handling to do this?
3> In addition, we have run into several cases where there are references to objects where we don't have the benefit of knowing what the reference is. Can you point us to the right files that set the reference for customer and/or do you have an SDK snippet that would list out the common attributes/functions on these? It would really help to be able to look them up in VS.
Thanks in Advance!
--ron
A few questions:
1> What is the best way to extend ($customer). We have a multi-tiered subscription model and have new user roles:
Free Registration
Subscriber (has purchased 1 or more subscriptions, set on checkout of a subscription)
Premium Subscriber (has purchased 1 or more subscriptions with a premium attribute)
and want to create new functions like $customer.getRoles or $customer.IsSubscriber.
2> What is the best way to extend the registration/checkout section to add profile additions/value pairs via UserAttributes table, and be able to extend this to call and set these? Is there underlying functionality not documented/exposed to do this, or do we need to make a class and data handling to do this?
3> In addition, we have run into several cases where there are references to objects where we don't have the benefit of knowing what the reference is. Can you point us to the right files that set the reference for customer and/or do you have an SDK snippet that would list out the common attributes/functions on these? It would really help to be able to look them up in VS.
Thanks in Advance!
--ron