kapilt / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

In Get Paid Setup - Site Profile | Contact Email Isn't a Required Entry | No Contact Address = No Confirms Sent #291

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.create getpaid adapter inside a form
2.fill out site profile
3.site profile contact email isn't a required field. left empty no confirms go 
out

What is the expected output? What do you see instead?
no emails.. hair pulled boss pissed look foolish

What version of the product are you using? On what version of Plone? How
did you install it (tarball vs buildout vs...)?
Get Paid 0.8.8 | Plone 3.3.5 | buildout

Please provide any additional information below.

Original issue reported on code.google.com by estyrer2 on 17 Apr 2010 at 5:00

GoogleCodeExporter commented 8 years ago
if IUserContactInformation is changed to solve this issue, could it be possible 
not to require the Phone number ?
it just requires a small change in browser/admin_order.py
something like
@@ -589,9 +589,10 @@

     def getContactInformation(self):
         contact = self.order.contact_information
+        phone_number = getattr( contact, 'phone_number', '')
         contact ={'name': contact.name,
                   'email': contact.email,
-                  'phone': contact.phone_number}
+                  'phone': phone_number}
         return contact

Original comment by danielle...@gmail.com on 26 Dec 2010 at 4:36