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

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.

主站蜘蛛池模板: 樟树市| 龙胜| 岳阳市| 会同县| 治县。| 库尔勒市| 黄冈市| 金昌市| 墨江| 南陵县| 唐山市| 时尚| 福泉市| 平原县| 辉南县| 开江县| 炎陵县| 东阳市| 潼关县| 镇巴县| 武平县| 清水县| 福建省| 正镶白旗| 贺州市| 开江县| 永和县| 卓尼县| 修文县| 洮南市| 沅江市| 房产| 通化市| 安塞县| 宁明县| 枞阳县| 广汉市| 南岸区| 邓州市| 庆阳市| 沿河|