My current customer has a need to sup****t tax exempt customers -- not
individual products, but the customer itself is marked as tax exempt. I
have found no "built-in" sup****t for tax exemption at the User or
Organization Profile level and am altering the profile at both the user
and
organization level to sup****t this.
My problem, then, is how do I retrieve this information from the pipeline.
Assuming I have an organization that is tax exempt and I can retrieve the
value in a form similar to
OrganizationProfile.Property["GeneralInformation.is_tax_exempt"] == true),
how can I get this value when I'm in the pipeline.
In dealing with the user profile, the same issue arises. All sample code
I
have seen p***** the UserProfile object into the pipeline context through
the Profiles part of the context as such:
pipeline.Profiles.Add("UserObject", CommerceContext.Current.UserProfile);
I'm assuming there's a reason it's done like this and not added directly
to
the context dictionary (actually curious about this but atm it's not the
most pressing issue). That said, how can I retrieve the current user
profile -- or any profile for that matter -- from within the Execute
method
of the custom pipeline? Can I safely pass the profile object directly in
the context without using the Profiles collection of the PipelineInfo
object?
Thanks in advance for your response.
Andy M.


|