Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WooCommerce 3个主要更新模板错误_Php_Wordpress_Templates_Woocommerce_Updates - Fatal编程技术网

Php WooCommerce 3个主要更新模板错误

Php WooCommerce 3个主要更新模板错误,php,wordpress,templates,woocommerce,updates,Php,Wordpress,Templates,Woocommerce,Updates,上周我更新了PHP7,我还将WooCommerce更新为3.0.x 但是在更新之后,我注意到我的用户注册中的额外字段不再工作了。我使用WP成员插件添加了这些额外字段 当我在页面底部进一步搜索WooCommerce系统状态时,我发现了这个错误 customtheme/woocommerce/cart/cart.php版本2.1.0已过时。 核心版本是3.0.0, customtheme/woocommerce/checkout/form-checkout.php版本2.0.0已发布 过时了。核心版

上周我更新了PHP7,我还将WooCommerce更新为3.0.x

但是在更新之后,我注意到我的用户注册中的额外字段不再工作了。我使用WP成员插件添加了这些额外字段

当我在页面底部进一步搜索WooCommerce系统状态时,我发现了这个错误

customtheme/woocommerce/cart/cart.php版本2.1.0已过时。 核心版本是3.0.0, customtheme/woocommerce/checkout/form-checkout.php版本2.0.0已发布 过时了。核心版本是2.3.0, customtheme/woocommerce/checkout/review-order.php版本2.1.8已经发布 日期。核心版本是2.3.0, customtheme/woocommerce/checkout/thankyou.php 2.2.0版已过期 日期。核心版本是3.0.0, customtheme/woocommerce/content-product.php版本1.6.4已过期 日期。核心版本是3.0.0, customtheme/woocommerce/loop/loop-start.php, customtheme/woocommerce/loop/pagination.php, customtheme/woocommerce/myaccount/form-edit-address.php版本2.1.0 它已经过时了。核心版本是2.6.0, customtheme/woocommerce/single product/add to cart/variable.php 版本2.1.0已过时。核心版本是2.5.0, customtheme/woocommerce/single product/product-image.php版本 2.0.14已过时。核心版本是3.0.0,customtheme/woocommerce/single product/product-thumbnails.php版本 2.0.3已过时。核心版本是3.0.0,customtheme/woocommerce/single product/short-description.php, customtheme/woocommerce/single product/tabs/description.php, customtheme/woocommerce/single product/title.php

有没有人能帮我修复这些问题,并使我的用户注册页面显示所有自定义字段

谢谢

WooCommerce 3.0+是一个非常重要的更新,比以前严格得多。很多事情都发生了变化,用于WooCommerce 2.6+版的大多数自定义代码都需要更新。

请参阅相关文章

在本例中,您需要更新位于customtheme(文件夹)>woocommerce(子文件夹)的主题中的所有woocommerce模板

为此,您必须将所有列出的文件从woocommerce插件的“模板”文件夹替换到主题woocommerce(子文件夹):

woocommerce/templates/cart/cart.php=>customtheme/woocommerce/cart/cart.php
woomerce/templates/checkout/form-checkout.php=>customtheme/woomerce/checkout/form-checkout.php
woomerce/templates/checkout/review-order.php=>customtheme/woomerce/checkout/review-order.php
woocommerce/templates/checkout/thankyou.php=>customtheme/woocommerce/checkout/thankyou.php
woocommerce/templates/content-product.php=>customtheme/woocommerce/content-product.php
woomerce/templates/loop/loop-start.php=>customtheme/woomerce/loop/loop-start.php
woomerce/templates/loop/pagination.php=>customtheme/woomerce/loop/pagination.php
woocommerce/templates/myaccount/form-edit-address.php=>customtheme/woocommerce/myaccount/form-edit-address.php
woocommerce/templates/single product/add to cart/variable.php=>customtheme/woocommerce/single product/add to cart/variable.php
woocommerce/templates/single product/product-image.php=>customtheme/woocommerce/single product/product-image.php
woocommerce/templates/single product/product-thumbnails.php=>customtheme/woocommerce/single product/product-thumbnails.php
woocommerce/templates/single product/short-description.php=>customtheme/woocommerce/single product/short-description.php
woocommerce/templates/single product/tabs/description.php=>customtheme/woocommerce/single product/tabs/description.php
woocommerce/templates/single product/title.php=>customtheme/woocommerce/single product/title.php
但之前请保留该旧模板的副本,因为您需要在新模板中替换您所做的所有更改。


请参阅以下相关文档: