Ecshop removes the province, province, and city, so that you can manually enter the shipping address

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.