如果woocommerce中的产品缺货,则无法查看结帐页面内容

时间:2018-10-24 03:46:29

标签: wordpress woocommerce

我在wordpress中使用woocommerce。我已删除购物车页面,并在结帐页面中添加了购物车功能。因此,用户可以显示所有添加的产品,也可以从结帐页面中删除产品。但是现在我面临一个问题,如果一个用户在购物车中添加了产品,并且如果该产品缺货而另一位用户同时购买该产品,那么我将无法获得woocomerce页面的所有内容。它只是告诉我

[2,2,5,5]

我进入了Sorry, "foo" is not in stock. Please edit your cart and try again. We apologize for any inconvenience caused. There are some issues with the items in your cart (shown above). Please go back to the cart page and resolve these issues before checking out.,并删除了显示错误消息的代码。但是它只会停止显示错误消息,而不会显示woocommerce>template>checkout>cart-error.php页的全部内容。

0 个答案:

没有答案