Hi,
I am trying remove country DropdownField from the Checkout page. But i am not successful.
I think that the directing files are OrderForm and EcommerceRole.
I try to modify these files, but when i do that I have a BlancPage.
In EcommerceRole.php i try to remove these line:
function getEcommerceFields() {
$fields = new FieldSet(
new HeaderField('Fakturační informace', 3),
new TextField('FirstName', 'Jméno'),
new TextField('Surname', 'Příjmení'),
new TextField('HomePhone', 'Telefon'),
new TextField('MobilePhone', 'Mobil'),
new TextField('Address', 'Adresa'),
new TextField('AddressLine2', 'PSČ'),
new TextField('City', 'Město'),
new TextField('Country', 'Country', Geoip::getCountryDropDown(), EcommerceRole::findCountry()) <- this line i remove
);
and also the comma on the line over.
When i do this, the field for Country is not displayed, but when I try to push "Different Shipping address" I have only blanc page. And the same thing in OrderForm.php
Have anybody an idea what to do? How I can remove Country Field?