Extending affiliation - customer entered code - resolved

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Need to have customer enter an affiliate code at point of registration.  I have added a "Code" field to Affiliate (thanks for the great article, Ben!) and added to the admin interface, and I've added a Code TextBox to CustomerRegister.aspx.

Now I'm stuck.  I can see where the affiliate is added from URL, but I'm having trouble seeing how to integrate validating the affiliate code on entry and where to add it to the customer.  Should this be done right in CustomerRegisterControl, or should I add a transient AffiliateCode property to Customer and then customize CustomerService.UpdateCustomer()?

Any help would be appreciated.

UPDATE: sorry, should note that I'm working with 1.90

Thanks,
Marc
13 年 前
UPDATE: Went with the latter, it seems to follow the conventions more closely, though the transient field is a little hackish.  Now having another issue, going to start another thread...
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.