I have seen many foreign trade station owners struggle with the delivery address, because the foreign provinces and cities are different from those in China, and often target customers all over the world, it is very complicated to manually join cascade cities. This article uses a very simple method to manually enter the shipping address. I have previously introduced a complicated method for filling in the shipping address manually in ecshop. Modifying the database and other complex operations is not suitable for friends who have no foundation.
This article introduces a new method that is suitable for friends who have no foundation. The principle is to hide those fields and set a default value for those fields so that no error is prompted during submission.
Open the template file path/themes/default/library/consigee. lib and find the location of approximately 6th rows.
Nearby, change it
<! -- The real product in the shopping cart is displayed in the country and region --> <tr style = "display: none;>
Add the followingCode:
<Div style = "display: none; "> <input name =" District "value =" 1 "type =" hidden "/> <input name =" city "value =" 1 "type =" hidden "/> <input name = "Province" value = "1" type = "hidden"/> <input name = "country" value = "1" type = "hidden"/> </ div>
In this way, you only need to enter the address in the adress column to submit the order, so that the selected country or province does not exist. The method is simple and silly, but it is very practical. You are welcome to make a brick.