I noticed that countries that are unpublished nevertheless show up on the registration form list or on the shopping cart page when filling out the shipping address
VirtueMart 4.2.18
I cannot confirm this.
In my installs only the published countries are listed.
Thanks for the information. You're right - it does work, but only for people who are not logged in.
I also have this problem in the admin panel. There is clearly some bug. look at the user edit in the admin panel - I have the same problem even though countries such as Afghanistan have been disabled
It seems that countries that are unpublished only display for the logged in vendor. I understand that this was intentional for some reason. But this logic is nonsensical! After all, if a vendor hides certain countries in the store, it doesn't make sense for them to see them as a logged-in user in forms that are supposed to reflect what customers see. In addition, it makes it difficult to search for the right country in this long list for a rule to block or unblock a payment or shipping plugin.
Just comment on the fragment below in
administrator/components/com_virtuemart/models/userfields.php
//if($vmUserTable->user_is_vendor){
// $attrib['unpublished'] = 1;
//}