
Originally Posted by
lat9
picandnix, I've looked at the inclusion of the "Country" field before and it's not an easy "fix"; I'll check it out and let you know.
OK, it took me a while but I looked and wasn't as difficult as I thought. I was also prompted to add the "Country" field because I noticed a slew of PHP (5.4+) debug log files when my customers went through checkout with PayPal Express Checkout:
Code:
PHP Warning: Illegal string offset 'id' in <mysite info>/vinos/includes/modules/payment/paypalwpp.php on line 996
... which were due to a NULL entry_country_id being written to the address_book table.
I've submitted v1.3.0 to the Plugins area; it should be available there shortly. Features:
- Added the capability to require the customer's country during account creation via admin configuration setting.
- If the country is enabled, a customer can choose the value during account creation and change it using their account_edit page.
- If the country is not enabled, the entry_country_id field in each customer's address record is set to the "Default Create Account Country ID".
- The first time someone accesses your admin after you copy the files, any 0-value entry_country_id fields in your database's address_book table are set to your store's "Default Create Account Country ID".
- Since the country is a demographic item only, it's not displayed on a customer invoice.