Hi,
It is happening because you set the "GB" as the default country (via VM Backend >> User fields). So; this "default country" applies to even to the guest users. Since, the user has a "field" in the profile, our template thinks this user has provided address via Guest Checkout featire.
You should apply one of these patches:
Patch #1:
Navigate to
VM Backend >> Shopper Field and edit the field_name: "virtuemart_country_id", remove the "Default" value (it is
GB in your case)
If you insists on keeping the
GB as your defualt country, then you should follow the 2nd patch
Patch #2:
1- open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php
2- find this line:
if (!$checkUserFields && $user->guest) {
3- replace it with this:
if ((!$checkUserFields || $checkUserFields == 'GB') && $user->guest) {
4- open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_address.php
5- find this line:
6- replace it with this:
if ($checkUserFields and $checkUserFields != 'GB') {
Either one of the patches will solve the problem you have.
Regards.