VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: tez on June 09, 2009, 14:11:34 PM

Title: Billing Information fails to display if Country is NULL
Post by: tez 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]
Title: Re: Billing Information fails to display if Country is NULL
Post by: aravot on June 09, 2009, 20:18:47 PM
Can not duplicate your issue, if you need help provide detail, see bug reporting template.
Title: Re: Billing Information fails to display if Country is NULL
Post by: tez on June 10, 2009, 02:09:19 AM
set a customer's user_info Country to null.
try checkout with 4 step checkout
Title: Re: Billing Information fails to display if Country is NULL
Post by: aravot on June 10, 2009, 02:15:00 AM
See bug reporting template http://forum.virtuemart.net/index.php?topic=31709.0
Title: Re: Billing Information fails to display if Country is NULL
Post by: tez 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:
Title: Re: Billing Information fails to display if Country is NULL
Post by: aravot 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.
Title: Re: Billing Information fails to display if Country is NULL
Post by: fedda 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
Title: Re: Billing Information fails to display if Country is NULL
Post by: lakrax 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!!