Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server General > Tax Exempt Cust...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2391 of 2446
Post > Topic >>

Tax Exempt Customers, Profiles, and Custom Pipelines

by "Andy Meadows" <andy@[EMAIL PROTECTED] > Nov 8, 2007 at 12:20 AM

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.
 




 2 Posts in Topic:
Tax Exempt Customers, Profiles, and Custom Pipelines
"Andy Meadows"   2007-11-08 00:20:51 
Re: Tax Exempt Customers, Profiles, and Custom Pipelines
"Andy Meadows"   2007-11-12 18:09:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:48:28 CST 2008.