如何为WooCommerce启用维护模式

Recently some of our readers asked us if it’s possible to put a WooCommerce store in maintenance mode without affecting other parts of a website?

最近,一些读者问我们是否可以在不影响网站其他部分的情况下将WooCommerce商店置于维护模式?

The good news is that it’s not only possible, but it’s also very easy to do.

好消息是,这不仅可能,而且操作起来也非常容易。

In this article, we’ll show you how to enable maintenance mode for WooCommerce. You will have the option to restrict maintenance mode only to your store pages, or you can enable it for the entire website.

在本文中,我们将向您展示如何为WooCommerce启用维护模式。 您可以选择仅将维护模式限制为您的商店页面,或者可以对整个网站启用它。

How to enable maintenance mode for WooCommerce
为什么和何时需要为WooCommerce启用维护模式 (Why and When You Need to Enable Maintenance Mode for WooCommerce)

There are couple of key reasons why you might want to put your WooCommerce store (but not your whole site) into maintenance mode or coming soon mode:

您可能想将WooCommerce商店(而不是整个网站)置于维护模式或即将推出模式的几个关键原因:

  • Your store is still under construction and you haven’t launched it yet. This is a great time to use a “coming soon” page to build excitement while you work on your store behind the scenes.

    您的商店仍在建设中,尚未启动。 这是在幕后工作时使用“即将推出”页面来激发兴奋的绝佳时机。
  • Something’s gone wrong with your store. If there’s a problem, being able to quickly put the store into maintenance mode will give you the time you need to fix things (without any Google penalties).

    您的商店出了点问题。 如果有问题,能够快速将商店设为维护模式将使您有时间修复问题(无需支付任何Google罚款)。
  • online store section to an existing website, but want to test it properly before opening it for the general public.在线商店部分,但是想要在对公众开放之前对其进行正确的测试。

Putting your WooCommerce store under maintenance mode helps you improve overall user experience and avoid any misplaced orders as you work on your site.

将WooCommerce商店置于维护模式可帮助您改善整体用户体验,并避免在您处理网站时出现任何放错订单的情况。

That being said, let’s take a look at how to easily enable WooCommerce maintenance mode without affecting rest of your website.

话虽如此,让我们看一下如何轻松启用WooCommerce维护模式而不影响网站的其余部分。

Tip: If you do want to hide your entire WordPress site from visitors, check out our article that explains how to put your WordPress site in maintenance mode.

提示:如果您确实想对访问者隐藏整个WordPress网站,请查看我们的文章,其中介绍了如何将WordPress网站置于维护模式

影片教学 (Video Tutorial)

演示地址

If you’d prefer written instructions, just keep reading.

如果您喜欢书面说明,请继续阅读。

为WooCommerce启用维护模式 (Enabling Maintenance Mode for WooCommerce)

The first thing you need to do is install and activate the SeedProd plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活SeedProd插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you’ll need to enter your license key by going to Settings » Coming Soon Pro and clicking on the ‘License’ tab:

激活后,您需要进入“设置”»“即将推出Pro”并单击“许可证”标签来输入许可证密钥:

Entering your license key on the SeedProd Coming Soon Pro settings page

Now you’re ready to put your WooCommerce store under maintenance mode.

现在您可以将WooCommerce商店置于维护模式。

创建维护模式或即将推出页面 (Creating Your Maintenance Mode or Coming Soon Page)

To start designing your page, you need to visit Settings » Coming Soon Pro page and click on the ‘Edit Coming Soon/Maintenance Page’ button.

要开始设计页面,您需要访问设置»即将推出的Pro页面,然后单击“编辑即将推出的/维护页面”按钮。

Click the button Edit Coming Soon/Maintenance Page

On the next page, you’ll see many different templates to choose from. Each of them can be easily customized to match your needs.

在下一页上,您将看到许多不同的模板可供选择。 它们每个都可以轻松定制以满足您的需求。

Furthermore, you can switch to a different theme at any time without losing the changes you’ve made to the text and other fields on your maintenance page.

此外,您可以随时切换到其他主题,而不会丢失对维护页面上的文本和其他字段所做的更改。

Viewing the available maintenance page themes

Once you’ve chosen a theme, your page will be automatically created for you, with the header ‘Coming Soon’. We’re using the ‘Party Confetti Celebration’ theme here.

选择主题后,页面将自动为您创建,标题为“即将推出”。 我们在这里使用“ Party Confetti Celebration”主题。

The Party Confetti theme, with colorful confetti in the background

To change the text on the page, click the ‘Content’ tab on the left, and you will see the option to edit the text.

要更改页面上的文本,请单击左侧的“内容”选项卡,您将看到编辑文本的选项。

You can also change the order of the different areas of the page by simply moving them up and down under the ‘Sections Order’.

您还可以通过简单地在“部分顺序”下将它们上下移动来更改页面不同区域的顺序。

If you want to add extra sections to your maintenance page, you can do that too. Simply close the ‘Content’ tab by clicking on it, and then open the tab for the new section that you want.

如果要在维护页面中添加其他部分,也可以这样做。 只需单击“内容”选项卡即可,然后打开所需的新部分的选项卡。

Here, we’re adding a countdown timer to the page. This can be a great way to build excitement when your store is about to launch.

在这里,我们向页面添加了倒数计时器。 当商店即将开业时,这可能是激发兴奋的好方法。

Adding a countdown to your maintenance page

Tip: If you want to launch your store automatically when the countdown finishes, then just turn on ‘Auto Launch’ in the countdown timer settings.

提示:如果您想在倒计时结束时自动启动商店,只需在倒数计时器设置中打开“自动启动”即可。

The page you create can act as a type of landing page, allowing you to start building an email list straight away.

您创建的页面可以用作登录页面的类型,使您可以立即开始构建电子邮件列表

When you’re happy with how your maintenance page looks, make sure you click ‘Save’ at the top of the page.

当您对维护页面的外观感到满意时,请确保单击页面顶部的“保存”。

打开WooCommerce商店的维护或即将推出的模式 (Turn on Maintenance or Coming Soon Mode for Your WooCommerce Store)

Now that you have created your custom coming soon or maintenance mode page, let’s go ahead and enable it.

现在,您已经创建了即将推出的自定义或维护模式页面,让我们继续启用它。

In your WordPress dashboard, go to Settings » Coming Soon Pro.

在WordPress信息中心中,转到“设置”»“即将推出Pro”

Under ‘Status’ you can choose either ‘Enable Coming Soon Mode’ or ‘Enable Maintenance Mode’.

在“状态”下,您可以选择“启用即将启用的模式”或“启用维护模式”。

Although these terms often get used interchangeably, they each have a different meaning and purpose here.

尽管这些术语通常可以互换使用,但它们在这里具有不同的含义和目的。

Coming Soon Mode

即将推出

If you haven’t yet launched your online shop, you should normally pick ‘Enable Coming Soon Mode’. This mode lets your page start getting indexed by Google, without potential customers being able to view any of the pages.

如果您尚未开设网上商店,则通常应选择“启用即将推出的模式”。 此模式使您的页面开始被Google编入索引,而潜在客户则无法查看任何页面。

Coming Soon Mode is for sites that are under construction.

即将推出模式适用于正在建设中的网站。

Maintenance Mode

维护模式

If your store is genuinely down for maintenance, you should normally pick ‘Maintenance Mode’. For instance, if you installed a new plugin that’s caused problems, you might need to take your site down while you fix things.

如果您的商店确实需要维修,通常应选择“维护模式”。 例如,如果您安装了引起问题的新插件,则在修复问题时可能需要关闭网站。

Maintenance Mode tells search engines that your site is temporarily down, using the special header code 503.

维护模式使用特殊的标头代码503告诉搜索引擎您的网站暂时关闭。

Once you’ve chosen the appropriate option, you need to ensure that just your store is being put into coming soon or maintenance mode, not your entire site.

选择了适当的选项后,您需要确保即将进入商店或即将进入维护模式的商店,而不是整个站点。

To do this, scroll down to ‘Advanced Settings’ and click ‘Include URLs’.

为此,向下滚动到“高级设置”,然后单击“包含URL”。

Enter the URLs you want to include in coming soon / maintenance mode

In the text box, you need to enter the URLs for your WooCommerce store. You’ll want to include all the default WooCommerce pages. (Don’t forget to replace example.com with your own domain name.)

在文本框中,您需要输入WooCommerce商店的URL。 您将要包括所有默认的WooCommerce页面。 (不要忘记用您自己的域名替换example.com 。)

https://example.com/shop
https://example.com/cart
https://example.com/checkout
https://example.com/my-account

https://example.com/shop https://example.com/cart https://example.com/checkout https://example.com/my-account

If your store has products, then you’ll need to also add these URLs:

如果您的商店有产品,那么您还需要添加以下URL:

https://example.com/product/*
https://example.com/product-category/*
https://example.com/product-tag/*

https://example.com/product/* https://example.com/product-category/* https://example.com/product-tag/*

The asterisk at the end of each of those URLs is a wildcard character. That means that the SeedProd will include all URLs that match the pattern before the asterisk.

每个URL末尾的星号是通配符。 这意味着SeedProd将包括所有与星号之前的模式匹配的URL。

Once you’ve done this, click the ‘Save All Changes’ button.

完成此操作后,点击“保存所有更改”按钮。

检查商店是否处于维护模式 (Checking Your Store is In Maintenance Mode)

Once you’re done, we recommend opening up a guest or incognito browser window where you’re not logged in, and head to your WooCommerce store. You should see the coming soon or maintenance mode page, and not your online store.

完成后,建议您打开未登录的访客或隐身浏览器窗口,然后前往WooCommerce商店。 您应该看到“即将推出”或“维护模式”页面,而不是在线商店。

Don’t forget to check a page that’s not part of your store, too, to make sure you didn’t accidentally put your whole site into maintenance mode.

也不要忘记检查不在商店中的页面,以确保您不会将整个站点意外地置于维护模式。

Now you can login and work on your WordPress store without worrying about others potentially seeing a broken area on your site while it’s under construction or maintenance.

现在,您可以登录并在WordPress商店上工作,而不必担心其他人在其站点正在建设或维护过程中可能会看到站点损坏的地方。

We hope this article helped you learn how to enable maintenance mode for WooCommerce. You may also want to take a look at our list of the the best WooCommerce plugins, and our complete step-by-step WooCommerce SEO guide for beginners.

我们希望本文能帮助您学习如何为WooCommerce启用维护模式。 您可能还需要查看我们的最佳WooCommerce插件列表,以及针对初学者的完整的逐步WooCommerce SEO指南

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-enable-maintenance-mode-for-woocommerce/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值