WHMCS 从结帐页面中删除 "Country" 选择器

WHMCS Remove "Country" selector from checkout page

我从事 WHMCS 自定义,想隐藏国家/地区选择器字段。我尝试从模板中评论县,但未显示字段,但是当尝试结帐时,出现此错误:

Please correct the following errors before continuing:
Please choose your country from the drop down box

这是处理该部分的模板代码:

<div class="col-sm-12">
                        <div class="form-group prepend-icon">
                            <label for="inputCountry" class="field-icon" id="inputCountryIcon">
                                <i class="fa fa-globe"></i>
                            </label>
                            <select name="country" id="inputCountry" class="field"{if $loggedin} disabled="disabled"{/if}>
                                {foreach $countries as $countrycode => $countrylabel}
                                    <option value="{$countrycode}"{if (!$country && $countrycode == $defaultcountry) || $countrycode eq $country} selected{/if}>
                                        {$countrylabel}
                                    </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

还有这个:

<div class="col-sm-12">
                        <div class="form-group prepend-icon">
                            <select name="domaincontactcountry" id="inputDCCountry" class="field">
                                {foreach $countries as $countrycode => $countrylabel}
                                    <option value="{$countrycode}"{if (!$domaincontact.country && $countrycode == $defaultcountry) || $countrycode eq $domaincontact.country} selected{/if}>
                                        {$countrylabel}
                                    </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                </div>

所以我的问题是如何在没有警告的情况下继续结帐?

对于每个国家 div 添加样式="display:none",例如:

这将隐藏 div 但会保留默认的国家/地区选择。