Author Topic: Billing Information fails to display if Country is NULL  (Read 6596 times)

tez

  • Jr. Member
  • **
  • Posts: 130
Billing Information fails to display if Country is NULL
« on: June 09, 2009, 14:11:34 pm »
I didn't want the huge country list on my Registration Form, because the shop only delivers to one country and everyone who registers is assumed to be from that country.

How can I disable the Country field, without it defaulting to NULL on registration? It doesn't work.

When you go to checkout, you see missing data. As in the attachment. If the Country code is added to the user account, then the data shows up.

I can work around it by forcing a default country value in the database and setting not_null, but this is a bug.
Also on shipping step you get an error if the shipping module expects a country.
Warning: stristr() [function.stristr]: Empty delimiter in ...administrator/components/com_virtuemart/classes/shipping/standard_shipping.php on line 286

[attachment cleanup by admin]

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Billing Information fails to display if Country is NULL
« Reply #1 on: June 09, 2009, 20:18:47 pm »
Can not duplicate your issue, if you need help provide detail, see bug reporting template.

tez

  • Jr. Member
  • **
  • Posts: 130
Re: Billing Information fails to display if Country is NULL
« Reply #2 on: June 10, 2009, 02:09:19 am »
set a customer's user_info Country to null.
try checkout with 4 step checkout


tez

  • Jr. Member
  • **
  • Posts: 130
Re: Billing Information fails to display if Country is NULL
« Reply #4 on: June 10, 2009, 02:32:32 am »


Description:
NULL country causes address not to be displayed in checkout, therefore Cannot omit country from Registration form. Even though it uses the shop country as default for State selection (which works) it does not save the country at registration.

VirtueMart Version:
1.1.3

Joomla/Mambo Version:
1.5.10

Steps to replicate:
set jos_vm_user_info->country to null
set all checkout steps on
add product to cart, checkout
see Billing Information review page, address details will be empty.

Proposed fix(es):

Bugtracker task #:

System info:

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Billing Information fails to display if Country is NULL
« Reply #5 on: June 10, 2009, 21:45:35 pm »
I could not duplicate your issue, unpublished country registered new user without country (no country to select since it is unpublished) and user info do show.

fedda

  • Beginner
  • *
  • Posts: 2
Re: Billing Information fails to display if Country is NULL
« Reply #6 on: June 22, 2009, 23:18:58 pm »
Ahh, thats why it wasn't any billing information showing.

Got the same problem, under admin -> Manage User Fields -> country, then enable -> required, published, show in registration form, show in account maintenance.

Vola, you got billing information...

If you disable it, it doesn't work. 

/Fredrik

lakrax

  • Beginner
  • *
  • Posts: 2
Re: Billing Information fails to display if Country is NULL
« Reply #7 on: August 27, 2009, 16:58:59 pm »
First at all, english isn't my first lang. so, please excuse.

I had this issue too, to solve edit the field on phpmyadmin, look for your database then find this table jos_vm_order_user_info open it structure, edit the field "country", unmark the NULL thing and set default as you wish (put country_2_code).

This is not the best solution; when you change some user fields its retake it's default behavior.

This should work only for inland customers.

good bye!!