官术网_书友最值得收藏!

Importance of test sites

If you've been a WordPress developer for a while, you're probably familiar with test sites. And while they're important in regular WordPress development, they're critical in WooCommerce development. The following screenshot shows what a website development process looks like:

With a typical WordPress development project, you'll build custom functionality on your local machine. Then, you'll upload it to a test site where the client usually approves it. Then, you move the test site to the live site, replacing data and files.

And this works great for most WordPress projects. But when it comes to e-commerce, there are two problems:

  • You can never replace the live database: Since an e-commerce site is always on and always accepting new orders, payments, and marking items as shipped, you can't replace the live database with the test database.
  • E-commerce functionality often needs a publicly accessible URL to work properly: A lot of e-commerce functionality (shipping, payment, and taxes) interacts with third parties, some of which need a publicly accessible URL to return data. So, it's much harder to test your site on a local machine.

Since the e-commerce site has more demands, we're going to cover some of the things you need to do with a test site:

  • Migrate files but not the database
  • Test with a publicly accessible URL

With these two extra criteria met, both of which can be done by a good website host, you can easily test and launch your own WooCommerce site. Let's look into migrating files first.

主站蜘蛛池模板: 同仁县| 千阳县| 长沙市| 黎川县| 江西省| 鹤岗市| 云和县| 铁力市| 故城县| 元朗区| 陵水| 河源市| 宁化县| 肥东县| 北票市| 秦安县| 保康县| 章丘市| 航空| 内江市| 沿河| 肇庆市| 张家川| 怀集县| 西藏| 云梦县| 卢龙县| 栾川县| 孟连| 招远市| 德江县| 营口市| 龙山县| 玛多县| 凤城市| 喀什市| 苏尼特左旗| 炎陵县| 观塘区| 博客| 文安县|